#B166CC#B166CC

#B166CC is a light, vivid purple. Relative luminance 0.232; OKLCH L 63.4% C 0.165 H 316.5°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B166CC
RGBrgb(177, 102, 204)
HSLhsl(284, 50%, 60%)
HSVhsv(284, 50%, 80%)
CMYKcmyk(13.2%, 50%, 0%, 20%)
CIE-LABlab(55.29, 46.89, -40.89)
CIE-LCHlch(55.29, 62.22, 318.91°)
OKLaboklab(63.41% 0.1197 -0.1136)
OKLCHoklch(63.41% 0.165 316.5)
XYZxyz(33.7803, 23.2105, 59.8157)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166CC #81CC66
analogous
#7E66CC #B166CC #CC66B4
triadic
#B166CC #CCB166 #66CCB1
tetradic
#B166CC #CC7E66 #81CC66 #66B4CC
square
#B166CC #CC7E66 #81CC66 #66B4CC
split-complementary
#B166CC #B4CC66 #66CC7E
monochromatic
#712E8A #973DB8 #B166CC #C894DB #E0C2EB

Accessibility & contrast

On white

3.72
#B166CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#B166CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166CC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166CC#FFFFFF#000000##000000
##B166CC1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5180CF
Deuteranopia (green-blind)
#6887C9
Tritanopia (blue-blind)
#B07590
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b166cc;
/* rgb */ color: rgb(177, 102, 204);
/* oklch */ color: oklch(63.4% 0.165 316.5);
Tailwind
colors: {
  custom: {
    50: '#ca94dc',
    500: '#b166cc',
    950: '#000000',
  },
}
SCSS
$custom: #b166cc;
$custom-light: #ca94dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b166cc",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 284.118,
    "s": 50,
    "l": 60
  },
  "oklch": {
    "l": 0.63405,
    "c": 0.16505,
    "h": 316.5
  },
  "luminance": 0.23209
}

Semantic roles & 50–950 ramp

primary
#B166CC
secondary
#BEDBB3
accent
#DA4E73
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #B166CC

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

Preview Lab → · Contrast checker → · Palette generator →

#B166CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva