#9872FD#9872FD

#9872FD is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.6% C 0.198 H 292.7°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9872FD
RGBrgb(152, 114, 253)
HSLhsl(256, 97%, 72%)
HSVhsv(256, 55%, 99%)
CMYKcmyk(39.9%, 54.9%, 0%, 0.8%)
CIE-LABlab(57.85, 45.76, -64.43)
CIE-LCHlch(57.85, 79.02, 305.38°)
OKLaboklab(65.57% 0.0766 -0.1831)
OKLCHoklch(65.57% 0.198 292.7)
XYZxyz(36.6911, 25.8009, 95.9564)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872FD #D7FD72
analogous
#7292FD #9872FD #DE72FD
triadic
#9872FD #FD9872 #72FD98
tetradic
#9872FD #FD7292 #D7FD72 #72FDDE
square
#9872FD #FD7292 #D7FD72 #72FDDE
split-complementary
#9872FD #FDDE72 #92FD72
monochromatic
#4403F1 #6C36FC #9872FD #C4AEFE #E9E1FF

Accessibility & contrast

On white

3.41
#9872FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#9872FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872FD
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872FD#FFFFFF#000000##000000
##9872FD1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8DFF
Deuteranopia (green-blind)
#3588FA
Tritanopia (blue-blind)
#7D90AD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9872fd;
/* rgb */ color: rgb(152, 114, 253);
/* oklch */ color: oklch(65.6% 0.198 292.7);
Tailwind
colors: {
  custom: {
    50: '#bc9bff',
    500: '#9872fd',
    950: '#000000',
  },
}
SCSS
$custom: #9872fd;
$custom-light: #bc9bff;
$custom-dark: #000000;
JSON
{
  "hex": "#9872fd",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 253
  },
  "hsl": {
    "h": 256.403,
    "s": 97.203,
    "l": 71.961
  },
  "oklch": {
    "l": 0.65568,
    "c": 0.19848,
    "h": 292.7
  },
  "luminance": 0.25802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9872FD

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

Preview Lab → · Contrast checker → · Palette generator →

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