#9872C8#9872C8

#9872C8 is a light, vivid violet. Relative luminance 0.229; OKLCH L 62.5% C 0.131 H 303.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9872C8
RGBrgb(152, 114, 200)
HSLhsl(267, 44%, 62%)
HSVhsv(267, 43%, 78%)
CMYKcmyk(24%, 43%, 0%, 21.6%)
CIE-LABlab(54.95, 32.29, -39.33)
CIE-LCHlch(54.95, 50.89, 309.39°)
OKLaboklab(62.47% 0.0718 -0.1098)
OKLCHoklch(62.47% 0.131 303.2)
XYZxyz(29.3893, 22.8802, 57.5004)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872C8 #A2C872
analogous
#7277C8 #9872C8 #C372C8
triadic
#9872C8 #C89872 #72C898
tetradic
#9872C8 #C87277 #A2C872 #72C8C3
square
#9872C8 #C87277 #A2C872 #72C8C3
split-complementary
#9872C8 #C8C372 #77C872
monochromatic
#5B368A #7847B6 #9872C8 #B89ED9 #D8CAEA

Accessibility & contrast

On white

3.77
#9872C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#9872C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872C8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872C8#FFFFFF#000000##000000
##9872C81.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C83CB
Deuteranopia (green-blind)
#6483C6
Tritanopia (blue-blind)
#908093
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9872c8;
/* rgb */ color: rgb(152, 114, 200);
/* oklch */ color: oklch(62.5% 0.131 303.2);
Tailwind
colors: {
  custom: {
    50: '#b89bd9',
    500: '#9872c8',
    950: '#000000',
  },
}
SCSS
$custom: #9872c8;
$custom-light: #b89bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9872c8",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 200
  },
  "hsl": {
    "h": 266.512,
    "s": 43.878,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62469,
    "c": 0.13115,
    "h": 303.2
  },
  "luminance": 0.2288
}

Semantic roles & 50–950 ramp

primary
#9872C8
secondary
#CDDBBB
accent
#B72E7B
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9872C8

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

Preview Lab → · Contrast checker → · Palette generator →

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