#9867CF#9867CF

#9867CF is a mid, vivid violet. Relative luminance 0.209; OKLCH L 61.0% C 0.158 H 303.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9867CF
RGBrgb(152, 103, 207)
HSLhsl(268, 52%, 61%)
HSVhsv(268, 50%, 81%)
CMYKcmyk(26.6%, 50.2%, 0%, 18.8%)
CIE-LABlab(52.82, 40.20, -46.69)
CIE-LCHlch(52.82, 61.61, 310.73°)
OKLaboklab(60.99% 0.0879 -0.1311)
OKLCHoklch(60.99% 0.158 303.8)
XYZxyz(29.0592, 20.8810, 61.5189)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9867CF #9ECF67
analogous
#676ACF #9867CF #CC67CF
triadic
#9867CF #CF9867 #67CF98
tetradic
#9867CF #CF676A #9ECF67 #67CFCC
square
#9867CF #CF676A #9ECF67 #67CFCC
split-complementary
#9867CF #CFCC67 #6ACF67
monochromatic
#5B2D8F #793CBD #9867CF #B896DE #D7C4EC

Accessibility & contrast

On white

4.06
#9867CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#9867CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9867CF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9867CF#FFFFFF#000000##000000
##9867CF1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#477DD3
Deuteranopia (green-blind)
#557ECC
Tritanopia (blue-blind)
#8E7A91
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9867cf;
/* rgb */ color: rgb(152, 103, 207);
/* oklch */ color: oklch(61.0% 0.158 303.8);
Tailwind
colors: {
  custom: {
    50: '#b994de',
    500: '#9867cf',
    950: '#000000',
  },
}
SCSS
$custom: #9867cf;
$custom-light: #b994de;
$custom-dark: #000000;
JSON
{
  "hex": "#9867cf",
  "rgb": {
    "r": 152,
    "g": 103,
    "b": 207
  },
  "hsl": {
    "h": 268.269,
    "s": 52,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60991,
    "c": 0.15788,
    "h": 303.8
  },
  "luminance": 0.20881
}

Semantic roles & 50–950 ramp

primary
#9867CF
secondary
#CADDB5
accent
#BF2677
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9867CF

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

Preview Lab → · Contrast checker → · Palette generator →

#9867CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva