#B166B9#B166B9

#B166B9 is a light, vivid purple. Relative luminance 0.224; OKLCH L 62.5% C 0.145 H 323.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#B166B9
RGBrgb(177, 102, 185)
HSLhsl(294, 37%, 56%)
HSVhsv(294, 45%, 73%)
CMYKcmyk(4.3%, 44.9%, 0%, 27.5%)
CIE-LABlab(54.40, 43.07, -31.40)
CIE-LCHlch(54.40, 53.30, 323.91°)
OKLaboklab(62.46% 0.1168 -0.0863)
OKLCHoklch(62.46% 0.145 323.6)
XYZxyz(31.6389, 22.3540, 48.5377)
Luminance0.2235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166B9 #6EB966
analogous
#8866B9 #B166B9 #B96698
triadic
#B166B9 #B9B166 #66B9B1
tetradic
#B166B9 #B98866 #6EB966 #6698B9
square
#B166B9 #B98866 #6EB966 #6698B9
split-complementary
#B166B9 #98B966 #66B988
monochromatic
#6B3471 #93479B #B166B9 #C690CC #DCBADF

Accessibility & contrast

On white

3.84
#B166B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#B166B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166B9
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166B9#FFFFFF#000000##000000
##B166B91.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C7CBC
Deuteranopia (green-blind)
#7185B6
Tritanopia (blue-blind)
#B47087
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b166b9;
/* rgb */ color: rgb(177, 102, 185);
/* oklch */ color: oklch(62.5% 0.145 323.6);
Tailwind
colors: {
  custom: {
    50: '#ca94ce',
    500: '#b166b9',
    950: '#000000',
  },
}
SCSS
$custom: #b166b9;
$custom-light: #ca94ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b166b9",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 185
  },
  "hsl": {
    "h": 294.217,
    "s": 37.22,
    "l": 56.275
  },
  "oklch": {
    "l": 0.62455,
    "c": 0.14522,
    "h": 323.6
  },
  "luminance": 0.22353
}

Semantic roles & 50–950 ramp

primary
#B166B9
secondary
#B0CEAC
accent
#CD5B66
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#130D13
muted
#827E82

Preview Lab

Preview with #B166B9

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

Preview Lab → · Contrast checker → · Palette generator →

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