#9866BD#9866BD

#9866BD is a mid, vivid violet. Relative luminance 0.199; OKLCH L 59.8% C 0.138 H 309.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9866BD
RGBrgb(152, 102, 189)
HSLhsl(274, 40%, 57%)
HSVhsv(274, 46%, 74%)
CMYKcmyk(19.6%, 46%, 0%, 25.9%)
CIE-LABlab(51.67, 36.53, -38.19)
CIE-LCHlch(51.67, 52.85, 313.73°)
OKLaboklab(59.83% 0.0871 -0.1064)
OKLCHoklch(59.83% 0.138 309.3)
XYZxyz(26.8838, 19.8526, 50.5499)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866BD #8BBD66
analogous
#6D66BD #9866BD #BD66B6
triadic
#9866BD #BD9866 #66BD98
tetradic
#9866BD #BD6D66 #8BBD66 #66B6BD
square
#9866BD #BD6D66 #8BBD66 #66B6BD
split-complementary
#9866BD #B6BD66 #66BD6D
monochromatic
#593376 #7A45A1 #9866BD #B591CF #D2BCE2

Accessibility & contrast

On white

4.23
#9866BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9866BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866BD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866BD#FFFFFF#000000##000000
##9866BD1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5279C0
Deuteranopia (green-blind)
#5F7CBB
Tritanopia (blue-blind)
#937488
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9866bd;
/* rgb */ color: rgb(152, 102, 189);
/* oklch */ color: oklch(59.8% 0.138 309.3);
Tailwind
colors: {
  custom: {
    50: '#b893d1',
    500: '#9866bd',
    950: '#000000',
  },
}
SCSS
$custom: #9866bd;
$custom-light: #b893d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9866bd",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 189
  },
  "hsl": {
    "h": 274.483,
    "s": 39.726,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59833,
    "c": 0.13752,
    "h": 309.3
  },
  "luminance": 0.19852
}

Semantic roles & 50–950 ramp

primary
#9866BD
secondary
#BDD1AE
accent
#D0588B
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D14
muted
#807E82

Preview Lab

Preview with #9866BD

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

Preview Lab → · Contrast checker → · Palette generator →

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