#9872FE#9872FE

#9872FE is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.6% C 0.200 H 292.5°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9872FE
RGBrgb(152, 114, 254)
HSLhsl(256, 99%, 72%)
HSVhsv(256, 55%, 100%)
CMYKcmyk(40.2%, 55.1%, 0%, 0.4%)
CIE-LABlab(57.91, 46.02, -64.88)
CIE-LCHlch(57.91, 79.54, 305.35°)
OKLaboklab(65.63% 0.0766 -0.1845)
OKLCHoklch(65.63% 0.2 292.5)
XYZxyz(36.8508, 25.8648, 96.7975)
Luminance0.2587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872FE #D8FE72
analogous
#7292FE #9872FE #DE72FE
triadic
#9872FE #FE9872 #72FE98
tetradic
#9872FE #FE7292 #D8FE72 #72FEDE
square
#9872FE #FE7292 #D8FE72 #72FEDE
split-complementary
#9872FE #FEDE72 #92FE72
monochromatic
#4302F4 #6C35FE #9872FE #C4AFFE #E9E1FF

Accessibility & contrast

On white

3.40
#9872FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9872FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872FE
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872FE#FFFFFF#000000##000000
##9872FE1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#298DFF
Deuteranopia (green-blind)
#3488FB
Tritanopia (blue-blind)
#7D90AD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9872fe;
/* rgb */ color: rgb(152, 114, 254);
/* oklch */ color: oklch(65.6% 0.200 292.5);
Tailwind
colors: {
  custom: {
    50: '#bc9cff',
    500: '#9872fe',
    950: '#000000',
  },
}
SCSS
$custom: #9872fe;
$custom-light: #bc9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#9872fe",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 254
  },
  "hsl": {
    "h": 256.286,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65632,
    "c": 0.19972,
    "h": 292.5
  },
  "luminance": 0.25866
}

Semantic roles & 50–950 ramp

primary
#9872FE
secondary
#EEF7D4
accent
#E600A7
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9872FE

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

Preview Lab → · Contrast checker → · Palette generator →

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