#B166AC#B166AC

#B166AC is a mid, vivid purple. Relative luminance 0.218; OKLCH L 61.9% C 0.132 H 329.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B166AC
RGBrgb(177, 102, 172)
HSLhsl(304, 32%, 55%)
HSVhsv(304, 42%, 69%)
CMYKcmyk(0%, 42.4%, 2.8%, 30.6%)
CIE-LABlab(53.85, 40.61, -24.74)
CIE-LCHlch(53.85, 47.56, 328.65°)
OKLaboklab(61.86% 0.1141 -0.0673)
OKLCHoklch(61.86% 0.132 329.5)
XYZxyz(30.3288, 21.8300, 41.6378)
Luminance0.2183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166AC #66B16B
analogous
#9166B1 #B166AC #B16687
triadic
#B166AC #ACB166 #66ACB1
tetradic
#B166AC #B19166 #66B16B #6687B1
square
#B166AC #B19166 #66B16B #6687B1
split-complementary
#B166AC #87B166 #66B191
monochromatic
#683564 #904A8C #B166AC #C68FC2 #DAB7D8

Accessibility & contrast

On white

3.91
#B166AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#B166AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166AC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166AC#FFFFFF#000000##000000
##B166AC1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#627AAE
Deuteranopia (green-blind)
#7684AA
Tritanopia (blue-blind)
#B66C81
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b166ac;
/* rgb */ color: rgb(177, 102, 172);
/* oklch */ color: oklch(61.9% 0.132 329.5);
Tailwind
colors: {
  custom: {
    50: '#ca94c5',
    500: '#b166ac',
    950: '#000000',
  },
}
SCSS
$custom: #b166ac;
$custom-light: #ca94c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b166ac",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 172
  },
  "hsl": {
    "h": 304,
    "s": 32.468,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61858,
    "c": 0.13249,
    "h": 329.5
  },
  "luminance": 0.21828
}

Semantic roles & 50–950 ramp

primary
#B166AC
secondary
#AAC9AC
accent
#C9665F
background
#FCF9FC
surface
#F9F1F8
border
#D2CBD1
text
#130D12
muted
#827E81

Preview Lab

Preview with #B166AC

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

Preview Lab → · Contrast checker → · Palette generator →

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