#9872FC#9872FC

#9872FC is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.5% C 0.197 H 292.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9872FC
RGBrgb(152, 114, 252)
HSLhsl(257, 96%, 72%)
HSVhsv(257, 55%, 99%)
CMYKcmyk(39.7%, 54.8%, 0%, 1.2%)
CIE-LABlab(57.79, 45.49, -63.97)
CIE-LCHlch(57.79, 78.50, 305.42°)
OKLaboklab(65.5% 0.0765 -0.1818)
OKLCHoklch(65.5% 0.197 292.8)
XYZxyz(36.5322, 25.7374, 95.1196)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872FC #D6FC72
analogous
#7291FC #9872FC #DD72FC
triadic
#9872FC #FC9872 #72FC98
tetradic
#9872FC #FC7291 #D6FC72 #72FCDD
square
#9872FC #FC7291 #D6FC72 #72FCDD
split-complementary
#9872FC #FCDD72 #91FC72
monochromatic
#4505EF #6C36FB #9872FC #C4AEFD #E9E1FE

Accessibility & contrast

On white

3.42
#9872FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9872FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872FC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872FC#FFFFFF#000000##000000
##9872FC1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C8DFF
Deuteranopia (green-blind)
#3788F9
Tritanopia (blue-blind)
#7E8FAC
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9872fc;
/* rgb */ color: rgb(152, 114, 252);
/* oklch */ color: oklch(65.5% 0.197 292.8);
Tailwind
colors: {
  custom: {
    50: '#bc9bfe',
    500: '#9872fc',
    950: '#000000',
  },
}
SCSS
$custom: #9872fc;
$custom-light: #bc9bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#9872fc",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 252
  },
  "hsl": {
    "h": 256.522,
    "s": 95.833,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65503,
    "c": 0.19725,
    "h": 292.8
  },
  "luminance": 0.25738
}

Semantic roles & 50–950 ramp

primary
#9872FC
secondary
#EDF6D3
accent
#E600A6
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9872FC

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

Preview Lab → · Contrast checker → · Palette generator →

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