#9874E9#9874E9

#9874E9 is a light, vivid violet. Relative luminance 0.250; OKLCH L 64.7% C 0.170 H 295.4°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9874E9
RGBrgb(152, 116, 233)
HSLhsl(258, 73%, 68%)
HSVhsv(258, 50%, 91%)
CMYKcmyk(34.8%, 50.2%, 0%, 8.6%)
CIE-LABlab(57.12, 39.40, -54.49)
CIE-LCHlch(57.12, 67.24, 305.87°)
OKLaboklab(64.66% 0.0732 -0.154)
OKLCHoklch(64.66% 0.17 295.4)
XYZxyz(33.8985, 25.0488, 80.1239)
Luminance0.2505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874E9 #C5E974
analogous
#748AE9 #9874E9 #D374E9
triadic
#9874E9 #E99874 #74E998
tetradic
#9874E9 #E9748A #C5E974 #74E9D3
square
#9874E9 #E9748A #C5E974 #74E9D3
split-complementary
#9874E9 #E9D374 #8AE974
monochromatic
#521FC4 #713FE1 #9874E9 #BFA9F1 #E6DEFA

Accessibility & contrast

On white

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

On black

6.01
#9874E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874E9
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874E9#FFFFFF#000000##000000
##9874E91.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#488AED
Deuteranopia (green-blind)
#5087E6
Tritanopia (blue-blind)
#858BA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9874e9;
/* rgb */ color: rgb(152, 116, 233);
/* oklch */ color: oklch(64.7% 0.170 295.4);
Tailwind
colors: {
  custom: {
    50: '#ba9df0',
    500: '#9874e9',
    950: '#000000',
  },
}
SCSS
$custom: #9874e9;
$custom-light: #ba9df0;
$custom-dark: #000000;
JSON
{
  "hex": "#9874e9",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 233
  },
  "hsl": {
    "h": 258.462,
    "s": 72.671,
    "l": 68.431
  },
  "oklch": {
    "l": 0.64655,
    "c": 0.17047,
    "h": 295.4
  },
  "luminance": 0.25049
}

Semantic roles & 50–950 ramp

primary
#9874E9
secondary
#E3EECB
accent
#D51198
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9874E9

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

Preview Lab → · Contrast checker → · Palette generator →

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