#9872CE#9872CE

#9872CE is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.8% C 0.139 H 301.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9872CE
RGBrgb(152, 114, 206)
HSLhsl(265, 48%, 63%)
HSVhsv(265, 45%, 81%)
CMYKcmyk(26.2%, 44.7%, 0%, 19.2%)
CIE-LABlab(55.24, 33.74, -42.28)
CIE-LCHlch(55.24, 54.10, 308.59°)
OKLaboklab(62.79% 0.0728 -0.1183)
OKLCHoklch(62.79% 0.139 301.6)
XYZxyz(30.1043, 23.1662, 61.2661)
Luminance0.2317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872CE #A8CE72
analogous
#727ACE #9872CE #C672CE
triadic
#9872CE #CE9872 #72CE98
tetradic
#9872CE #CE727A #A8CE72 #72CEC6
square
#9872CE #CE727A #A8CE72 #72CEC6
split-complementary
#9872CE #CEC672 #7ACE72
monochromatic
#5A3393 #7745BE #9872CE #B99FDE #DACDEE

Accessibility & contrast

On white

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

On black

5.63
#9872CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872CE
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872CE#FFFFFF#000000##000000
##9872CE1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5884D1
Deuteranopia (green-blind)
#6184CC
Tritanopia (blue-blind)
#8E8296
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9872ce;
/* rgb */ color: rgb(152, 114, 206);
/* oklch */ color: oklch(62.8% 0.139 301.6);
Tailwind
colors: {
  custom: {
    50: '#b89bdd',
    500: '#9872ce',
    950: '#000000',
  },
}
SCSS
$custom: #9872ce;
$custom-light: #b89bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9872ce",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 206
  },
  "hsl": {
    "h": 264.783,
    "s": 48.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62786,
    "c": 0.13889,
    "h": 301.6
  },
  "luminance": 0.23166
}

Semantic roles & 50–950 ramp

primary
#9872CE
secondary
#D1DFBD
accent
#BC2A7F
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9872CE

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

Preview Lab → · Contrast checker → · Palette generator →

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