#B166BC#B166BC

#B166BC is a light, vivid purple. Relative luminance 0.225; OKLCH L 62.6% C 0.148 H 322.3°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B166BC
RGBrgb(177, 102, 188)
HSLhsl(292, 39%, 57%)
HSVhsv(292, 46%, 74%)
CMYKcmyk(5.9%, 45.7%, 0%, 26.3%)
CIE-LABlab(54.53, 43.66, -32.92)
CIE-LCHlch(54.53, 54.68, 322.98°)
OKLaboklab(62.6% 0.1174 -0.0906)
OKLCHoklch(62.6% 0.148 322.3)
XYZxyz(31.9590, 22.4820, 50.2232)
Luminance0.2248 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166BC #71BC66
analogous
#8666BC #B166BC #BC669C
triadic
#B166BC #BCB166 #66BCB1
tetradic
#B166BC #BC8666 #71BC66 #669CBC
square
#B166BC #BC8666 #71BC66 #669CBC
split-complementary
#B166BC #9CBC66 #66BC86
monochromatic
#6C3375 #94469F #B166BC #C791CF #DCBBE1

Accessibility & contrast

On white

3.82
#B166BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#B166BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166BC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166BC#FFFFFF#000000##000000
##B166BC1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7DBF
Deuteranopia (green-blind)
#7085B9
Tritanopia (blue-blind)
#B37088
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b166bc;
/* rgb */ color: rgb(177, 102, 188);
/* oklch */ color: oklch(62.6% 0.148 322.3);
Tailwind
colors: {
  custom: {
    50: '#ca94d0',
    500: '#b166bc',
    950: '#000000',
  },
}
SCSS
$custom: #b166bc;
$custom-light: #ca94d0;
$custom-dark: #000000;
JSON
{
  "hex": "#b166bc",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 188
  },
  "hsl": {
    "h": 292.326,
    "s": 39.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.62598,
    "c": 0.14827,
    "h": 322.3
  },
  "luminance": 0.22481
}

Semantic roles & 50–950 ramp

primary
#B166BC
secondary
#B2D0AD
accent
#CF5968
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#130D14
muted
#827E82

Preview Lab

Preview with #B166BC

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

Preview Lab → · Contrast checker → · Palette generator →

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