#9874EE#9874EE

#9874EE is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.0% C 0.177 H 294.6°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9874EE
RGBrgb(152, 116, 238)
HSLhsl(258, 78%, 69%)
HSVhsv(258, 51%, 93%)
CMYKcmyk(36.1%, 51.3%, 0%, 6.7%)
CIE-LABlab(57.40, 40.70, -56.83)
CIE-LCHlch(57.40, 69.90, 305.61°)
OKLaboklab(64.96% 0.0736 -0.1608)
OKLCHoklch(64.96% 0.177 294.6)
XYZxyz(34.6229, 25.3385, 83.9390)
Luminance0.2534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874EE #CAEE74
analogous
#748DEE #9874EE #D574EE
triadic
#9874EE #EE9874 #74EE98
tetradic
#9874EE #EE748D #CAEE74 #74EED5
square
#9874EE #EE748D #CAEE74 #74EED5
split-complementary
#9874EE #EED574 #8DEE74
monochromatic
#4F19CE #703DE7 #9874EE #C0ABF5 #E9E1FB

Accessibility & contrast

On white

3.46
#9874EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9874EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874EE
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874EE#FFFFFF#000000##000000
##9874EE1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#438BF2
Deuteranopia (green-blind)
#4B88EB
Tritanopia (blue-blind)
#838CA6
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9874ee;
/* rgb */ color: rgb(152, 116, 238);
/* oklch */ color: oklch(65.0% 0.177 294.6);
Tailwind
colors: {
  custom: {
    50: '#ba9df4',
    500: '#9874ee',
    950: '#000000',
  },
}
SCSS
$custom: #9874ee;
$custom-light: #ba9df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9874ee",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 238
  },
  "hsl": {
    "h": 257.705,
    "s": 78.205,
    "l": 69.412
  },
  "oklch": {
    "l": 0.64955,
    "c": 0.17683,
    "h": 294.6
  },
  "luminance": 0.25339
}

Semantic roles & 50–950 ramp

primary
#9874EE
secondary
#E6F0CD
accent
#DA0B9D
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9874EE

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

Preview Lab → · Contrast checker → · Palette generator →

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