#9872F8#9872F8

#9872F8 is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.2% C 0.192 H 293.4°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#9872F8
RGBrgb(152, 114, 248)
HSLhsl(257, 91%, 71%)
HSVhsv(257, 54%, 97%)
CMYKcmyk(38.7%, 54%, 0%, 2.7%)
CIE-LABlab(57.55, 44.43, -62.15)
CIE-LCHlch(57.55, 76.40, 305.56°)
OKLaboklab(65.25% 0.0765 -0.1764)
OKLCHoklch(65.25% 0.192 293.4)
XYZxyz(35.9050, 25.4865, 91.8164)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872F8 #D2F872
analogous
#728FF8 #9872F8 #DB72F8
triadic
#9872F8 #F89872 #72F898
tetradic
#9872F8 #F8728F #D2F872 #72F8DB
square
#9872F8 #F8728F #D2F872 #72F8DB
split-complementary
#9872F8 #F8DB72 #8FF872
monochromatic
#490BE4 #6D38F5 #9872F8 #C3ACFB #EAE2FE

Accessibility & contrast

On white

3.44
#9872F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#9872F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872F8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872F8#FFFFFF#000000##000000
##9872F81.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#338CFD
Deuteranopia (green-blind)
#3D88F5
Tritanopia (blue-blind)
#7F8EAA
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9872f8;
/* rgb */ color: rgb(152, 114, 248);
/* oklch */ color: oklch(65.2% 0.192 293.4);
Tailwind
colors: {
  custom: {
    50: '#bb9bfb',
    500: '#9872f8',
    950: '#000000',
  },
}
SCSS
$custom: #9872f8;
$custom-light: #bb9bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#9872f8",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 248
  },
  "hsl": {
    "h": 257.015,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65248,
    "c": 0.19228,
    "h": 293.4
  },
  "luminance": 0.25487
}

Semantic roles & 50–950 ramp

primary
#9872F8
secondary
#EBF5D1
accent
#E600A4
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9872F8

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

Preview Lab → · Contrast checker → · Palette generator →

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