#9872C5#9872C5

#9872C5 is a light, vivid violet. Relative luminance 0.227; OKLCH L 62.3% C 0.127 H 304.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9872C5
RGBrgb(152, 114, 197)
HSLhsl(267, 42%, 61%)
HSVhsv(267, 42%, 77%)
CMYKcmyk(22.8%, 42.1%, 0%, 22.7%)
CIE-LABlab(54.80, 31.58, -37.85)
CIE-LCHlch(54.80, 49.29, 309.84°)
OKLaboklab(62.31% 0.0713 -0.1055)
OKLCHoklch(62.31% 0.127 304)
XYZxyz(29.0421, 22.7413, 55.6720)
Luminance0.2274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872C5 #9FC572
analogous
#7275C5 #9872C5 #C172C5
triadic
#9872C5 #C59872 #72C598
tetradic
#9872C5 #C57275 #9FC572 #72C5C1
square
#9872C5 #C57275 #9FC572 #72C5C1
split-complementary
#9872C5 #C5C172 #75C572
monochromatic
#5B3786 #7949B1 #9872C5 #B89DD7 #D7C9E9

Accessibility & contrast

On white

3.79
#9872C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#9872C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872C5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872C5#FFFFFF#000000##000000
##9872C51.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D82C8
Deuteranopia (green-blind)
#6683C3
Tritanopia (blue-blind)
#918092
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9872c5;
/* rgb */ color: rgb(152, 114, 197);
/* oklch */ color: oklch(62.3% 0.127 304.0);
Tailwind
colors: {
  custom: {
    50: '#b89bd7',
    500: '#9872c5',
    950: '#000000',
  },
}
SCSS
$custom: #9872c5;
$custom-light: #b89bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9872c5",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 197
  },
  "hsl": {
    "h": 267.47,
    "s": 41.709,
    "l": 60.98
  },
  "oklch": {
    "l": 0.62313,
    "c": 0.12728,
    "h": 304
  },
  "luminance": 0.22741
}

Semantic roles & 50–950 ramp

primary
#9872C5
secondary
#CBD9BA
accent
#B53178
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9872C5

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

Preview Lab → · Contrast checker → · Palette generator →

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