#9872CA#9872CA

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

Color values

HEX#9872CA
RGBrgb(152, 114, 202)
HSLhsl(266, 45%, 62%)
HSVhsv(266, 44%, 79%)
CMYKcmyk(24.8%, 43.6%, 0%, 20.8%)
CIE-LABlab(55.05, 32.77, -40.32)
CIE-LCHlch(55.05, 51.96, 309.11°)
OKLaboklab(62.57% 0.0721 -0.1126)
OKLCHoklch(62.57% 0.134 302.6)
XYZxyz(29.6246, 22.9743, 58.7394)
Luminance0.2297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872CA #A4CA72
analogous
#7278CA #9872CA #C472CA
triadic
#9872CA #CA9872 #72CA98
tetradic
#9872CA #CA7278 #A4CA72 #72CAC4
square
#9872CA #CA7278 #A4CA72 #72CAC4
split-complementary
#9872CA #CAC472 #78CA72
monochromatic
#5B358D #7846B9 #9872CA #B89EDB #D9CBEB

Accessibility & contrast

On white

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

On black

5.59
#9872CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872CA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872CA#FFFFFF#000000##000000
##9872CA1.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B83CD
Deuteranopia (green-blind)
#6384C8
Tritanopia (blue-blind)
#8F8194
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9872ca;
/* rgb */ color: rgb(152, 114, 202);
/* oklch */ color: oklch(62.6% 0.134 302.6);
Tailwind
colors: {
  custom: {
    50: '#b89bda',
    500: '#9872ca',
    950: '#000000',
  },
}
SCSS
$custom: #9872ca;
$custom-light: #b89bda;
$custom-dark: #000000;
JSON
{
  "hex": "#9872ca",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 265.909,
    "s": 45.361,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62573,
    "c": 0.13372,
    "h": 302.6
  },
  "luminance": 0.22974
}

Semantic roles & 50–950 ramp

primary
#9872CA
secondary
#CEDCBC
accent
#B92D7C
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9872CA

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

Preview Lab → · Contrast checker → · Palette generator →

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