#9870C8#9870C8

#9870C8 is a light, vivid violet. Relative luminance 0.224; OKLCH L 62.1% C 0.134 H 303.7°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9870C8
RGBrgb(152, 112, 200)
HSLhsl(267, 44%, 61%)
HSVhsv(267, 44%, 78%)
CMYKcmyk(24%, 44%, 0%, 21.6%)
CIE-LABlab(54.48, 33.44, -40.06)
CIE-LCHlch(54.48, 52.18, 309.85°)
OKLaboklab(62.12% 0.0746 -0.1119)
OKLCHoklch(62.12% 0.134 303.7)
XYZxyz(29.1662, 22.4339, 57.4260)
Luminance0.2243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870C8 #A0C870
analogous
#7074C8 #9870C8 #C470C8
triadic
#9870C8 #C89870 #70C898
tetradic
#9870C8 #C87074 #A0C870 #70C8C4
square
#9870C8 #C87074 #A0C870 #70C8C4
split-complementary
#9870C8 #C8C470 #74C870
monochromatic
#5B3589 #7846B5 #9870C8 #B89CD9 #D8C8EA

Accessibility & contrast

On white

3.83
#9870C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#9870C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870C8
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870C8#FFFFFF#000000##000000
##9870C81.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5981CB
Deuteranopia (green-blind)
#6282C6
Tritanopia (blue-blind)
#907F92
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9870c8;
/* rgb */ color: rgb(152, 112, 200);
/* oklch */ color: oklch(62.1% 0.134 303.7);
Tailwind
colors: {
  custom: {
    50: '#b89ad9',
    500: '#9870c8',
    950: '#000000',
  },
}
SCSS
$custom: #9870c8;
$custom-light: #b89ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#9870c8",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 200
  },
  "hsl": {
    "h": 267.273,
    "s": 44.444,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62119,
    "c": 0.13447,
    "h": 303.7
  },
  "luminance": 0.22434
}

Semantic roles & 50–950 ramp

primary
#9870C8
secondary
#CBDAB9
accent
#B82E79
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9870C8

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

Preview Lab → · Contrast checker → · Palette generator →

#9870C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva