#9872FA#9872FA

#9872FA is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.4% C 0.195 H 293.1°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9872FA
RGBrgb(152, 114, 250)
HSLhsl(257, 93%, 71%)
HSVhsv(257, 54%, 98%)
CMYKcmyk(39.2%, 54.4%, 0%, 2%)
CIE-LABlab(57.67, 44.96, -63.06)
CIE-LCHlch(57.67, 77.45, 305.49°)
OKLaboklab(65.38% 0.0765 -0.1791)
OKLCHoklch(65.38% 0.195 293.1)
XYZxyz(36.2169, 25.6112, 93.4592)
Luminance0.2561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872FA #D4FA72
analogous
#7290FA #9872FA #DC72FA
triadic
#9872FA #FA9872 #72FA98
tetradic
#9872FA #FA7290 #D4FA72 #72FADC
square
#9872FA #FA7290 #D4FA72 #72FADC
split-complementary
#9872FA #FADC72 #90FA72
monochromatic
#4708E9 #6D37F8 #9872FA #C3ADFC #E9E1FE

Accessibility & contrast

On white

3.43
#9872FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#9872FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872FA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872FA#FFFFFF#000000##000000
##9872FA1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#308CFF
Deuteranopia (green-blind)
#3A88F7
Tritanopia (blue-blind)
#7E8FAB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9872fa;
/* rgb */ color: rgb(152, 114, 250);
/* oklch */ color: oklch(65.4% 0.195 293.1);
Tailwind
colors: {
  custom: {
    50: '#bb9bfd',
    500: '#9872fa',
    950: '#000000',
  },
}
SCSS
$custom: #9872fa;
$custom-light: #bb9bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9872fa",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 250
  },
  "hsl": {
    "h": 256.765,
    "s": 93.151,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65376,
    "c": 0.19476,
    "h": 293.1
  },
  "luminance": 0.25612
}

Semantic roles & 50–950 ramp

primary
#9872FA
secondary
#ECF6D2
accent
#E600A5
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9872FA

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

Preview Lab → · Contrast checker → · Palette generator →

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