#9872F5#9872F5

#9872F5 is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.1% C 0.189 H 293.9°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9872F5
RGBrgb(152, 114, 245)
HSLhsl(257, 87%, 70%)
HSVhsv(257, 53%, 96%)
CMYKcmyk(38%, 53.5%, 0%, 3.9%)
CIE-LABlab(57.37, 43.65, -60.77)
CIE-LCHlch(57.37, 74.82, 305.69°)
OKLaboklab(65.06% 0.0764 -0.1724)
OKLCHoklch(65.06% 0.189 293.9)
XYZxyz(35.4433, 25.3018, 89.3848)
Luminance0.2530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872F5 #CFF572
analogous
#728DF5 #9872F5 #DA72F5
triadic
#9872F5 #F59872 #72F598
tetradic
#9872F5 #F5728D #CFF572 #72F5DA
square
#9872F5 #F5728D #CFF572 #72F5DA
split-complementary
#9872F5 #F5DA72 #8DF572
monochromatic
#4B10DD #6E39F1 #9872F5 #C2ABF9 #EAE2FD

Accessibility & contrast

On white

3.47
#9872F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#9872F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872F5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872F5#FFFFFF#000000##000000
##9872F51.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#378BF9
Deuteranopia (green-blind)
#4088F2
Tritanopia (blue-blind)
#818DA9
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9872f5;
/* rgb */ color: rgb(152, 114, 245);
/* oklch */ color: oklch(65.1% 0.189 293.9);
Tailwind
colors: {
  custom: {
    50: '#bb9bf9',
    500: '#9872f5',
    950: '#000000',
  },
}
SCSS
$custom: #9872f5;
$custom-light: #bb9bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#9872f5",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 257.405,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65059,
    "c": 0.18854,
    "h": 293.9
  },
  "luminance": 0.25303
}

Semantic roles & 50–950 ramp

primary
#9872F5
secondary
#E9F3CF
accent
#E302A2
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9872F5

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

Preview Lab → · Contrast checker → · Palette generator →

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