#B166CB#B166CB

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

Color values

HEX#B166CB
RGBrgb(177, 102, 203)
HSLhsl(285, 49%, 60%)
HSVhsv(285, 50%, 80%)
CMYKcmyk(12.8%, 49.8%, 0%, 20.4%)
CIE-LABlab(55.24, 46.68, -40.40)
CIE-LCHlch(55.24, 61.74, 319.13°)
OKLaboklab(63.35% 0.1196 -0.1122)
OKLCHoklch(63.35% 0.164 316.8)
XYZxyz(33.6608, 23.1627, 59.1860)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166CB #80CB66
analogous
#7E66CB #B166CB #CB66B3
triadic
#B166CB #CBB166 #66CBB1
tetradic
#B166CB #CB7E66 #80CB66 #66B3CB
square
#B166CB #CB7E66 #80CB66 #66B3CB
split-complementary
#B166CB #B3CB66 #66CB7E
monochromatic
#712E88 #973EB6 #B166CB #C894DB #E0C1EA

Accessibility & contrast

On white

3.73
#B166CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#B166CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166CB
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166CB#FFFFFF#000000##000000
##B166CB1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5280CE
Deuteranopia (green-blind)
#6887C8
Tritanopia (blue-blind)
#B0758F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b166cb;
/* rgb */ color: rgb(177, 102, 203);
/* oklch */ color: oklch(63.4% 0.164 316.8);
Tailwind
colors: {
  custom: {
    50: '#ca94db',
    500: '#b166cb',
    950: '#000000',
  },
}
SCSS
$custom: #b166cb;
$custom-light: #ca94db;
$custom-dark: #000000;
JSON
{
  "hex": "#b166cb",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 203
  },
  "hsl": {
    "h": 284.554,
    "s": 49.268,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63352,
    "c": 0.16398,
    "h": 316.8
  },
  "luminance": 0.23162
}

Semantic roles & 50–950 ramp

primary
#B166CB
secondary
#BDDAB3
accent
#D94F72
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #B166CB

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

Preview Lab → · Contrast checker → · Palette generator →

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