#B166CD#B166CD

#B166CD is a light, vivid purple. Relative luminance 0.233; OKLCH L 63.5% C 0.166 H 316.2°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#B166CD
RGBrgb(177, 102, 205)
HSLhsl(284, 51%, 60%)
HSVhsv(284, 50%, 80%)
CMYKcmyk(13.7%, 50.2%, 0%, 19.6%)
CIE-LABlab(55.34, 47.10, -41.38)
CIE-LCHlch(55.34, 62.70, 318.70°)
OKLaboklab(63.46% 0.1198 -0.115)
OKLCHoklch(63.46% 0.166 316.2)
XYZxyz(33.9006, 23.2587, 60.4494)
Luminance0.2326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166CD #82CD66
analogous
#7D66CD #B166CD #CD66B6
triadic
#B166CD #CDB166 #66CDB1
tetradic
#B166CD #CD7D66 #82CD66 #66B6CD
square
#B166CD #CD7D66 #82CD66 #66B6CD
split-complementary
#B166CD #B6CD66 #66CD7D
monochromatic
#722D8B #973DB9 #B166CD #C994DC #E0C2EB

Accessibility & contrast

On white

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

On black

5.65
#B166CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166CD
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166CD#FFFFFF#000000##000000
##B166CD1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5180D0
Deuteranopia (green-blind)
#6787CA
Tritanopia (blue-blind)
#B07590
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b166cd;
/* rgb */ color: rgb(177, 102, 205);
/* oklch */ color: oklch(63.5% 0.166 316.2);
Tailwind
colors: {
  custom: {
    50: '#ca94dc',
    500: '#b166cd',
    950: '#000000',
  },
}
SCSS
$custom: #b166cd;
$custom-light: #ca94dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b166cd",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 283.689,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.63457,
    "c": 0.16612,
    "h": 316.2
  },
  "luminance": 0.23258
}

Semantic roles & 50–950 ramp

primary
#B166CD
secondary
#BEDBB4
accent
#BE2750
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #B166CD

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

Preview Lab → · Contrast checker → · Palette generator →

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