#9872CC#9872CC

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

Color values

HEX#9872CC
RGBrgb(152, 114, 204)
HSLhsl(265, 47%, 62%)
HSVhsv(265, 44%, 80%)
CMYKcmyk(25.5%, 44.1%, 0%, 20%)
CIE-LABlab(55.14, 33.26, -41.30)
CIE-LCHlch(55.14, 53.03, 308.84°)
OKLaboklab(62.68% 0.0724 -0.1155)
OKLCHoklch(62.68% 0.136 302.1)
XYZxyz(29.8629, 23.0696, 59.9947)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872CC #A6CC72
analogous
#7279CC #9872CC #C572CC
triadic
#9872CC #CC9872 #72CC98
tetradic
#9872CC #CC7279 #A6CC72 #72CCC5
square
#9872CC #CC7279 #A6CC72 #72CCC5
split-complementary
#9872CC #CCC572 #79CC72
monochromatic
#5B3490 #7745BC #9872CC #B99FDC #DACCED

Accessibility & contrast

On white

3.74
#9872CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#9872CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872CC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872CC#FFFFFF#000000##000000
##9872CC1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A83CF
Deuteranopia (green-blind)
#6284CA
Tritanopia (blue-blind)
#8F8195
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9872cc;
/* rgb */ color: rgb(152, 114, 204);
/* oklch */ color: oklch(62.7% 0.136 302.1);
Tailwind
colors: {
  custom: {
    50: '#b89bdc',
    500: '#9872cc',
    950: '#000000',
  },
}
SCSS
$custom: #9872cc;
$custom-light: #b89bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9872cc",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 204
  },
  "hsl": {
    "h": 265.333,
    "s": 46.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62679,
    "c": 0.13631,
    "h": 302.1
  },
  "luminance": 0.2307
}

Semantic roles & 50–950 ramp

primary
#9872CC
secondary
#CFDDBC
accent
#BA2B7E
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9872CC

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

Preview Lab → · Contrast checker → · Palette generator →

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