#9866AF#9866AF

#9866AF is a mid, vivid purple. Relative luminance 0.193; OKLCH L 59.1% C 0.121 H 314.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9866AF
RGBrgb(152, 102, 175)
HSLhsl(281, 31%, 54%)
HSVhsv(281, 42%, 69%)
CMYKcmyk(13.1%, 41.7%, 0%, 31.4%)
CIE-LABlab(51.01, 33.40, -31.13)
CIE-LCHlch(51.01, 45.65, 317.01°)
OKLaboklab(59.12% 0.0847 -0.086)
OKLCHoklch(59.12% 0.121 314.6)
XYZxyz(25.4369, 19.2739, 42.9294)
Luminance0.1927 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866AF #7DAF66
analogous
#7466AF #9866AF #AF66A2
triadic
#9866AF #AF9866 #66AF98
tetradic
#9866AF #AF7466 #7DAF66 #66A2AF
square
#9866AF #AF7466 #7DAF66 #66A2AF
split-complementary
#9866AF #A2AF66 #66AF74
monochromatic
#563566 #784A8E #9866AF #B38EC4 #CEB6D9

Accessibility & contrast

On white

4.33
#9866AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#9866AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866AF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866AF#FFFFFF#000000##000000
##9866AF1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5977B2
Deuteranopia (green-blind)
#667BAD
Tritanopia (blue-blind)
#977082
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9866af;
/* rgb */ color: rgb(152, 102, 175);
/* oklch */ color: oklch(59.1% 0.121 314.6);
Tailwind
colors: {
  custom: {
    50: '#b792c7',
    500: '#9866af',
    950: '#000000',
  },
}
SCSS
$custom: #9866af;
$custom-light: #b792c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9866af",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 175
  },
  "hsl": {
    "h": 281.096,
    "s": 31.33,
    "l": 54.314
  },
  "oklch": {
    "l": 0.59118,
    "c": 0.1207,
    "h": 314.6
  },
  "luminance": 0.19273
}

Semantic roles & 50–950 ramp

primary
#9866AF
secondary
#B3C8A9
accent
#C86081
background
#FBF9FC
surface
#F6F1F8
border
#D0CBD1
text
#110D13
muted
#807E82

Preview Lab

Preview with #9866AF

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

Preview Lab → · Contrast checker → · Palette generator →

#9866AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva