#9872EA#9872EA

#9872EA is a light, vivid violet. Relative luminance 0.247; OKLCH L 64.4% C 0.175 H 295.7°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9872EA
RGBrgb(152, 114, 234)
HSLhsl(259, 74%, 68%)
HSVhsv(259, 51%, 92%)
CMYKcmyk(35%, 51.3%, 0%, 8.2%)
CIE-LABlab(56.73, 40.78, -55.67)
CIE-LCHlch(56.73, 69.01, 306.23°)
OKLaboklab(64.38% 0.0758 -0.1574)
OKLCHoklch(64.38% 0.175 295.7)
XYZxyz(33.8137, 24.6500, 80.8024)
Luminance0.2465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872EA #C4EA72
analogous
#7288EA #9872EA #D472EA
triadic
#9872EA #EA9872 #72EA98
tetradic
#9872EA #EA7288 #C4EA72 #72EAD4
square
#9872EA #EA7288 #C4EA72 #72EAD4
split-complementary
#9872EA #EAD472 #88EA72
monochromatic
#521DC4 #713DE2 #9872EA #BFA7F2 #E6DDFA

Accessibility & contrast

On white

3.54
#9872EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#9872EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872EA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872EA#FFFFFF#000000##000000
##9872EA1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4389EE
Deuteranopia (green-blind)
#4C86E7
Tritanopia (blue-blind)
#858AA3
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9872ea;
/* rgb */ color: rgb(152, 114, 234);
/* oklch */ color: oklch(64.4% 0.175 295.7);
Tailwind
colors: {
  custom: {
    50: '#ba9bf1',
    500: '#9872ea',
    950: '#000000',
  },
}
SCSS
$custom: #9872ea;
$custom-light: #ba9bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9872ea",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 259,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64383,
    "c": 0.17471,
    "h": 295.7
  },
  "luminance": 0.24651
}

Semantic roles & 50–950 ramp

primary
#9872EA
secondary
#E3EECA
accent
#D60F97
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9872EA

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

Preview Lab → · Contrast checker → · Palette generator →

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