#9872CD#9872CD

#9872CD is a light, vivid violet. Relative luminance 0.231; OKLCH L 62.7% C 0.138 H 301.8°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9872CD
RGBrgb(152, 114, 205)
HSLhsl(265, 48%, 63%)
HSVhsv(265, 44%, 80%)
CMYKcmyk(25.9%, 44.4%, 0%, 19.6%)
CIE-LABlab(55.19, 33.50, -41.79)
CIE-LCHlch(55.19, 53.56, 308.72°)
OKLaboklab(62.73% 0.0726 -0.1169)
OKLCHoklch(62.73% 0.138 301.8)
XYZxyz(29.9832, 23.1178, 60.6283)
Luminance0.2312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872CD #A7CD72
analogous
#7279CD #9872CD #C672CD
triadic
#9872CD #CD9872 #72CD98
tetradic
#9872CD #CD7279 #A7CD72 #72CDC6
square
#9872CD #CD7279 #A7CD72 #72CDC6
split-complementary
#9872CD #CDC672 #79CD72
monochromatic
#5B3391 #7745BD #9872CD #B99FDD #DACCED

Accessibility & contrast

On white

3.73
#9872CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#9872CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872CD
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872CD#FFFFFF#000000##000000
##9872CD1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5983D0
Deuteranopia (green-blind)
#6284CB
Tritanopia (blue-blind)
#8E8296
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9872cd;
/* rgb */ color: rgb(152, 114, 205);
/* oklch */ color: oklch(62.7% 0.138 301.8);
Tailwind
colors: {
  custom: {
    50: '#b89bdc',
    500: '#9872cd',
    950: '#000000',
  },
}
SCSS
$custom: #9872cd;
$custom-light: #b89bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9872cd",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 265.055,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62733,
    "c": 0.1376,
    "h": 301.8
  },
  "luminance": 0.23118
}

Semantic roles & 50–950 ramp

primary
#9872CD
secondary
#D0DEBD
accent
#BB2B7F
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9872CD

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

Preview Lab → · Contrast checker → · Palette generator →

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