#9872D4#9872D4

#9872D4 is a light, vivid violet. Relative luminance 0.235; OKLCH L 63.1% C 0.147 H 300.1°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9872D4
RGBrgb(152, 114, 212)
HSLhsl(263, 53%, 64%)
HSVhsv(263, 46%, 83%)
CMYKcmyk(28.3%, 46.2%, 0%, 16.9%)
CIE-LABlab(55.55, 35.22, -45.20)
CIE-LCHlch(55.55, 57.30, 307.92°)
OKLaboklab(63.11% 0.0736 -0.1268)
OKLCHoklch(63.11% 0.147 300.1)
XYZxyz(30.8471, 23.4633, 65.1783)
Luminance0.2346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872D4 #AED472
analogous
#727DD4 #9872D4 #C972D4
triadic
#9872D4 #D49872 #72D498
tetradic
#9872D4 #D4727D #AED472 #72D4C9
square
#9872D4 #D4727D #AED472 #72D4C9
split-complementary
#9872D4 #D4C972 #7DD472
monochromatic
#5A309C #7643C6 #9872D4 #BAA1E2 #DDD0F1

Accessibility & contrast

On white

3.69
#9872D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#9872D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872D4
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872D4#FFFFFF#000000##000000
##9872D41.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5585D8
Deuteranopia (green-blind)
#5D84D2
Tritanopia (blue-blind)
#8C8499
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9872d4;
/* rgb */ color: rgb(152, 114, 212);
/* oklch */ color: oklch(63.1% 0.147 300.1);
Tailwind
colors: {
  custom: {
    50: '#b99be1',
    500: '#9872d4',
    950: '#000000',
  },
}
SCSS
$custom: #9872d4;
$custom-light: #b99be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9872d4",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 212
  },
  "hsl": {
    "h": 263.265,
    "s": 53.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63113,
    "c": 0.14662,
    "h": 300.1
  },
  "luminance": 0.23463
}

Semantic roles & 50–950 ramp

primary
#9872D4
secondary
#D5E2C0
accent
#C12584
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9872D4

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

Preview Lab → · Contrast checker → · Palette generator →

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