#B166A5#B166A5

#B166A5 is a mid, vivid purple. Relative luminance 0.216; OKLCH L 61.6% C 0.126 H 333.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B166A5
RGBrgb(177, 102, 165)
HSLhsl(310, 32%, 55%)
HSVhsv(310, 42%, 69%)
CMYKcmyk(0%, 42.4%, 6.8%, 30.6%)
CIE-LABlab(53.57, 39.34, -21.10)
CIE-LCHlch(53.57, 44.65, 331.79°)
OKLaboklab(61.56% 0.1124 -0.057)
OKLCHoklch(61.56% 0.126 333.1)
XYZxyz(29.6742, 21.5681, 38.1901)
Luminance0.2157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166A5 #66B172
analogous
#9866B1 #B166A5 #B16680
triadic
#B166A5 #A5B166 #66A5B1
tetradic
#B166A5 #B19866 #66B172 #6680B1
square
#B166A5 #B19866 #66B172 #6680B1
split-complementary
#B166A5 #80B166 #66B198
monochromatic
#683560 #904A85 #B166A5 #C68FBD #DAB7D5

Accessibility & contrast

On white

3.95
#B166A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#B166A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166A5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166A5#FFFFFF#000000##000000
##B166A51.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6579A7
Deuteranopia (green-blind)
#7984A3
Tritanopia (blue-blind)
#B76A7E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b166a5;
/* rgb */ color: rgb(177, 102, 165);
/* oklch */ color: oklch(61.6% 0.126 333.1);
Tailwind
colors: {
  custom: {
    50: '#ca93bf',
    500: '#b166a5',
    950: '#000000',
  },
}
SCSS
$custom: #b166a5;
$custom-light: #ca93bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b166a5",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 165
  },
  "hsl": {
    "h": 309.6,
    "s": 32.468,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61556,
    "c": 0.12608,
    "h": 333.1
  },
  "luminance": 0.21566
}

Semantic roles & 50–950 ramp

primary
#B166A5
secondary
#AAC9AF
accent
#C9705F
background
#FCF9FB
surface
#F9F1F7
border
#D2CBD0
text
#130D12
muted
#827E81

Preview Lab

Preview with #B166A5

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

Preview Lab → · Contrast checker → · Palette generator →

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