#9872EF#9872EF

#9872EF is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.7% C 0.181 H 294.9°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9872EF
RGBrgb(152, 114, 239)
HSLhsl(258, 80%, 69%)
HSVhsv(258, 52%, 94%)
CMYKcmyk(36.4%, 52.3%, 0%, 6.3%)
CIE-LABlab(57.02, 42.08, -58.00)
CIE-LCHlch(57.02, 71.66, 305.96°)
OKLaboklab(64.69% 0.0761 -0.1643)
OKLCHoklch(64.69% 0.181 294.9)
XYZxyz(34.5422, 24.9413, 84.6389)
Luminance0.2494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872EF #C9EF72
analogous
#728BEF #9872EF #D772EF
triadic
#9872EF #EF9872 #72EF98
tetradic
#9872EF #EF728B #C9EF72 #72EFD7
square
#9872EF #EF728B #C9EF72 #72EFD7
split-complementary
#9872EF #EFD772 #8BEF72
monochromatic
#4F18CF #703BE9 #9872EF #C0A9F5 #E8E0FB

Accessibility & contrast

On white

3.51
#9872EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#9872EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872EF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872EF#FFFFFF#000000##000000
##9872EF1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8AF3
Deuteranopia (green-blind)
#4787EC
Tritanopia (blue-blind)
#838BA6
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9872ef;
/* rgb */ color: rgb(152, 114, 239);
/* oklch */ color: oklch(64.7% 0.181 294.9);
Tailwind
colors: {
  custom: {
    50: '#ba9bf5',
    500: '#9872ef',
    950: '#000000',
  },
}
SCSS
$custom: #9872ef;
$custom-light: #ba9bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9872ef",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 258.24,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.64687,
    "c": 0.18102,
    "h": 294.9
  },
  "luminance": 0.24942
}

Semantic roles & 50–950 ramp

primary
#9872EF
secondary
#E6F1CC
accent
#DC0A9C
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9872EF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9872EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva