#9875EA#9875EA

#9875EA is a light, vivid violet. Relative luminance 0.253; OKLCH L 64.9% C 0.170 H 295.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9875EA
RGBrgb(152, 117, 234)
HSLhsl(258, 74%, 69%)
HSVhsv(258, 50%, 92%)
CMYKcmyk(35%, 50%, 0%, 8.2%)
CIE-LABlab(57.40, 39.09, -54.60)
CIE-LCHlch(57.40, 67.15, 305.60°)
OKLaboklab(64.88% 0.072 -0.1543)
OKLCHoklch(64.88% 0.17 295)
XYZxyz(34.1577, 25.3379, 80.9170)
Luminance0.2534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9875EA #C7EA75
analogous
#758DEA #9875EA #D375EA
triadic
#9875EA #EA9875 #75EA98
tetradic
#9875EA #EA758D #C7EA75 #75EAD3
square
#9875EA #EA758D #C7EA75 #75EAD3
split-complementary
#9875EA #EAD375 #8DEA75
monochromatic
#511EC6 #7040E2 #9875EA #C0AAF2 #E7DFFA

Accessibility & contrast

On white

3.46
#9875EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9875EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9875EA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9875EA#FFFFFF#000000##000000
##9875EA1.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)
#498BEE
Deuteranopia (green-blind)
#5088E7
Tritanopia (blue-blind)
#858CA5
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9875ea;
/* rgb */ color: rgb(152, 117, 234);
/* oklch */ color: oklch(64.9% 0.170 295.0);
Tailwind
colors: {
  custom: {
    50: '#ba9df1',
    500: '#9875ea',
    950: '#000000',
  },
}
SCSS
$custom: #9875ea;
$custom-light: #ba9df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9875ea",
  "rgb": {
    "r": 152,
    "g": 117,
    "b": 234
  },
  "hsl": {
    "h": 257.949,
    "s": 73.585,
    "l": 68.824
  },
  "oklch": {
    "l": 0.64882,
    "c": 0.17026,
    "h": 295
  },
  "luminance": 0.25338
}

Semantic roles & 50–950 ramp

primary
#9875EA
secondary
#E4EFCC
accent
#D6109A
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9875EA

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

Preview Lab → · Contrast checker → · Palette generator →

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