#9872CB#9872CB

#9872CB is a light, vivid violet. Relative luminance 0.230; OKLCH L 62.6% C 0.135 H 302.4°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#9872CB
RGBrgb(152, 114, 203)
HSLhsl(266, 46%, 62%)
HSVhsv(266, 44%, 80%)
CMYKcmyk(25.1%, 43.8%, 0%, 20.4%)
CIE-LABlab(55.09, 33.02, -40.81)
CIE-LCHlch(55.09, 52.49, 308.97°)
OKLaboklab(62.63% 0.0723 -0.114)
OKLCHoklch(62.63% 0.135 302.4)
XYZxyz(29.7433, 23.0218, 59.3650)
Luminance0.2302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872CB #A5CB72
analogous
#7279CB #9872CB #C572CB
triadic
#9872CB #CB9872 #72CB98
tetradic
#9872CB #CB7279 #A5CB72 #72CBC5
square
#9872CB #CB7279 #A5CB72 #72CBC5
split-complementary
#9872CB #CBC572 #79CB72
monochromatic
#5B348E #7745BB #9872CB #B99FDB #D9CBEC

Accessibility & contrast

On white

3.75
#9872CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#9872CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872CB
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872CB#FFFFFF#000000##000000
##9872CB1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A83CE
Deuteranopia (green-blind)
#6384C9
Tritanopia (blue-blind)
#8F8195
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9872cb;
/* rgb */ color: rgb(152, 114, 203);
/* oklch */ color: oklch(62.6% 0.135 302.4);
Tailwind
colors: {
  custom: {
    50: '#b89bdb',
    500: '#9872cb',
    950: '#000000',
  },
}
SCSS
$custom: #9872cb;
$custom-light: #b89bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9872cb",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 265.618,
    "s": 46.114,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62626,
    "c": 0.13502,
    "h": 302.4
  },
  "luminance": 0.23022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9872CB

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

Preview Lab → · Contrast checker → · Palette generator →

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