#9872EE#9872EE

#9872EE is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.6% C 0.180 H 295.0°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9872EE
RGBrgb(152, 114, 238)
HSLhsl(258, 78%, 69%)
HSVhsv(258, 52%, 93%)
CMYKcmyk(36.1%, 52.1%, 0%, 6.7%)
CIE-LABlab(56.96, 41.82, -57.54)
CIE-LCHlch(56.96, 71.13, 306.01°)
OKLaboklab(64.63% 0.076 -0.1629)
OKLCHoklch(64.63% 0.18 295)
XYZxyz(34.3948, 24.8824, 83.8630)
Luminance0.2488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872EE #C8EE72
analogous
#728AEE #9872EE #D672EE
triadic
#9872EE #EE9872 #72EE98
tetradic
#9872EE #EE728A #C8EE72 #72EED6
square
#9872EE #EE728A #C8EE72 #72EED6
split-complementary
#9872EE #EED672 #8AEE72
monochromatic
#5019CD #703BE7 #9872EE #C0A9F5 #E8DFFB

Accessibility & contrast

On white

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

On black

5.98
#9872EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872EE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872EE#FFFFFF#000000##000000
##9872EE1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8AF2
Deuteranopia (green-blind)
#4887EB
Tritanopia (blue-blind)
#838BA5
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9872ee;
/* rgb */ color: rgb(152, 114, 238);
/* oklch */ color: oklch(64.6% 0.180 295.0);
Tailwind
colors: {
  custom: {
    50: '#ba9bf4',
    500: '#9872ee',
    950: '#000000',
  },
}
SCSS
$custom: #9872ee;
$custom-light: #ba9bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9872ee",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 238
  },
  "hsl": {
    "h": 258.387,
    "s": 78.481,
    "l": 69.02
  },
  "oklch": {
    "l": 0.64626,
    "c": 0.17976,
    "h": 295
  },
  "luminance": 0.24883
}

Semantic roles & 50–950 ramp

primary
#9872EE
secondary
#E5F0CC
accent
#DB0B9B
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9872EE

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

Preview Lab → · Contrast checker → · Palette generator →

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