#B166B7#B166B7

#B166B7 is a light, vivid purple. Relative luminance 0.223; OKLCH L 62.4% C 0.143 H 324.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B166B7
RGBrgb(177, 102, 183)
HSLhsl(296, 36%, 56%)
HSVhsv(296, 44%, 72%)
CMYKcmyk(3.3%, 44.3%, 0%, 28.2%)
CIE-LABlab(54.31, 42.68, -30.39)
CIE-LCHlch(54.31, 52.40, 324.55°)
OKLaboklab(62.36% 0.1164 -0.0834)
OKLCHoklch(62.36% 0.143 324.4)
XYZxyz(31.4293, 22.2701, 47.4336)
Luminance0.2227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166B7 #6CB766
analogous
#8866B7 #B166B7 #B76694
triadic
#B166B7 #B7B166 #66B7B1
tetradic
#B166B7 #B78866 #6CB766 #6694B7
square
#B166B7 #B78866 #6CB766 #6694B7
split-complementary
#B166B7 #94B766 #66B788
monochromatic
#6A346F #924898 #B166B7 #C690CB #DBB9DE

Accessibility & contrast

On white

3.85
#B166B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#B166B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166B7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166B7#FFFFFF#000000##000000
##B166B71.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7CBA
Deuteranopia (green-blind)
#7285B5
Tritanopia (blue-blind)
#B46F86
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b166b7;
/* rgb */ color: rgb(177, 102, 183);
/* oklch */ color: oklch(62.4% 0.143 324.4);
Tailwind
colors: {
  custom: {
    50: '#ca94cd',
    500: '#b166b7',
    950: '#000000',
  },
}
SCSS
$custom: #b166b7;
$custom-light: #ca94cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b166b7",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 183
  },
  "hsl": {
    "h": 295.556,
    "s": 36,
    "l": 55.882
  },
  "oklch": {
    "l": 0.6236,
    "c": 0.14321,
    "h": 324.4
  },
  "luminance": 0.22269
}

Semantic roles & 50–950 ramp

primary
#B166B7
secondary
#AECDAC
accent
#CC5C64
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#130D13
muted
#827E82

Preview Lab

Preview with #B166B7

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

Preview Lab → · Contrast checker → · Palette generator →

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