#B166AB#B166AB

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

Color values

HEX#B166AB
RGBrgb(177, 102, 171)
HSLhsl(305, 32%, 55%)
HSVhsv(305, 42%, 69%)
CMYKcmyk(0%, 42.4%, 3.4%, 30.6%)
CIE-LABlab(53.81, 40.43, -24.23)
CIE-LCHlch(53.81, 47.13, 329.07°)
OKLaboklab(61.81% 0.1139 -0.0659)
OKLCHoklch(61.81% 0.132 330)
XYZxyz(30.2331, 21.7917, 41.1339)
Luminance0.2179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166AB #66B16C
analogous
#9266B1 #B166AB #B16686
triadic
#B166AB #ABB166 #66ABB1
tetradic
#B166AB #B19266 #66B16C #6686B1
square
#B166AB #B19266 #66B16C #6686B1
split-complementary
#B166AB #86B166 #66B192
monochromatic
#683564 #904A8B #B166AB #C68FC1 #DAB7D8

Accessibility & contrast

On white

3.92
#B166AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#B166AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166AB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166AB#FFFFFF#000000##000000
##B166AB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#627AAD
Deuteranopia (green-blind)
#7784A9
Tritanopia (blue-blind)
#B66C81
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b166ab;
/* rgb */ color: rgb(177, 102, 171);
/* oklch */ color: oklch(61.8% 0.132 330.0);
Tailwind
colors: {
  custom: {
    50: '#ca94c4',
    500: '#b166ab',
    950: '#000000',
  },
}
SCSS
$custom: #b166ab;
$custom-light: #ca94c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b166ab",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 171
  },
  "hsl": {
    "h": 304.8,
    "s": 32.468,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61814,
    "c": 0.13156,
    "h": 330
  },
  "luminance": 0.2179
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B166AB

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

Preview Lab → · Contrast checker → · Palette generator →

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