#9872EC

#9872ec ≈ Medium Purple

  • violet
  • Lightness: high
  • Saturation: moderate
  • Cool

#9872ec is a color from the violet family, with high lightness and moderate saturation. In the RGB model it is made of 59.61% red, 44.71% green and 92.55% blue; printed in CMYK it uses 35.59% cyan, 51.69% magenta, 0% yellow and 7.45% black. Its hue angle is 258.69°, with 76.25% saturation and 68.63% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and brand accents. Black text on this color reaches a contrast ratio of 5.95:1 (WCAG AA). The closest named color is Medium Purple (#9370db), ΔE 2.68.

Description generated from the measured properties of this color.

Conversions of #9872ec into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#9966ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.2477

Readable text 3.53:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.95:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #888888 ≈ 0.003% of males
Achromatomaly #8f80b9 ≈ 0.001% of males
Protanopia #4189f0 ≈ 1.01% of males
Deuteranopia #4a87e9 ≈ 1.27% of males
Tritanopia #848aa4 ≈ 0.0001% of males
Protanomaly #6f81ef ≈ 1.08% of males
Deuteranomaly #727fea ≈ 4.63% of males
Tritanomaly #8d81c5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-9872ec {
  color: #9872ec;
}
Background
.bg-9872ec {
  background-color: #9872ec;
  color: #000000;
}
Border
.border-9872ec {
  border: 2px solid #9872ec;
}
CSS variables
:root {
  --color-primary: #9872ec;
  --color-primary-rgb: 152 114 236;
  --color-primary-hsl: 259 76% 69%;
}
Gradient
.gradient-9872ec {
  background: linear-gradient(135deg, #9872ec, #d572ec);
}
Colored shadow
.shadow-9872ec {
  box-shadow: 0 8px 24px rgb(152 114 236 / 0.35);
}

Medium Purple
#9872ec  rgb(152, 114, 236)  hsl(259, 76%, 69%)  Medium Purple
#c6ec72  rgb(198, 236, 114)  hsl(79, 76%, 69%)  Inchworm
#ec9872  rgb(236, 152, 114)  hsl(19, 76%, 69%)  Dark Salmon
#72ec98  rgb(114, 236, 152)  hsl(139, 76%, 69%)  Light Green