#9872FF#9872FF

#9872FF is a light, highly saturated violet. Relative luminance 0.259; OKLCH L 65.7% C 0.201 H 292.4°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9872FF
RGBrgb(152, 114, 255)
HSLhsl(256, 100%, 72%)
HSVhsv(256, 55%, 100%)
CMYKcmyk(40.4%, 55.3%, 0%, 0%)
CIE-LABlab(57.97, 46.29, -65.33)
CIE-LCHlch(57.97, 80.07, 305.32°)
OKLaboklab(65.7% 0.0766 -0.1858)
OKLCHoklch(65.7% 0.201 292.4)
XYZxyz(37.0113, 25.9290, 97.6431)
Luminance0.2593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872FF #D9FF72
analogous
#7293FF #9872FF #DE72FF
triadic
#9872FF #FF9872 #72FF98
tetradic
#9872FF #FF7293 #D9FF72 #72FFDE
square
#9872FF #FF7293 #D9FF72 #72FFDE
split-complementary
#9872FF #FFDE72 #93FF72
monochromatic
#4200F7 #6B35FF #9872FF #C5AFFF #E9E0FF

Accessibility & contrast

On white

3.39
#9872FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#9872FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872FF
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872FF#FFFFFF#000000##000000
##9872FF1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#278DFF
Deuteranopia (green-blind)
#3289FC
Tritanopia (blue-blind)
#7C90AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9872ff;
/* rgb */ color: rgb(152, 114, 255);
/* oklch */ color: oklch(65.7% 0.201 292.4);
Tailwind
colors: {
  custom: {
    50: '#bc9cff',
    500: '#9872ff',
    950: '#000000',
  },
}
SCSS
$custom: #9872ff;
$custom-light: #bc9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#9872ff",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 255
  },
  "hsl": {
    "h": 256.17,
    "s": 100,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65697,
    "c": 0.20096,
    "h": 292.4
  },
  "luminance": 0.2593
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9872FF

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

Preview Lab → · Contrast checker → · Palette generator →

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