#9874EA#9874EA

#9874EA is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.7% C 0.172 H 295.2°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9874EA
RGBrgb(152, 116, 234)
HSLhsl(258, 74%, 69%)
HSVhsv(258, 50%, 92%)
CMYKcmyk(35%, 50.4%, 0%, 8.2%)
CIE-LABlab(57.18, 39.66, -54.96)
CIE-LCHlch(57.18, 67.77, 305.81°)
OKLaboklab(64.72% 0.0733 -0.1553)
OKLCHoklch(64.72% 0.172 295.2)
XYZxyz(34.0418, 25.1061, 80.8784)
Luminance0.2511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874EA #C6EA74
analogous
#748BEA #9874EA #D374EA
triadic
#9874EA #EA9874 #74EA98
tetradic
#9874EA #EA748B #C6EA74 #74EAD3
square
#9874EA #EA748B #C6EA74 #74EAD3
split-complementary
#9874EA #EAD374 #8BEA74
monochromatic
#511EC6 #713FE2 #9874EA #BFA9F2 #E7DEFA

Accessibility & contrast

On white

3.49
#9874EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#9874EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874EA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874EA#FFFFFF#000000##000000
##9874EA1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#478AEE
Deuteranopia (green-blind)
#4F88E7
Tritanopia (blue-blind)
#858BA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9874ea;
/* rgb */ color: rgb(152, 116, 234);
/* oklch */ color: oklch(64.7% 0.172 295.2);
Tailwind
colors: {
  custom: {
    50: '#ba9df1',
    500: '#9874ea',
    950: '#000000',
  },
}
SCSS
$custom: #9874ea;
$custom-light: #ba9df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9874ea",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 234
  },
  "hsl": {
    "h": 258.305,
    "s": 73.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.64715,
    "c": 0.17175,
    "h": 295.2
  },
  "luminance": 0.25107
}

Semantic roles & 50–950 ramp

primary
#9874EA
secondary
#E4EFCB
accent
#D61099
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9874EA

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

Preview Lab → · Contrast checker → · Palette generator →

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