#B166D2#B166D2

#B166D2 is a light, vivid purple. Relative luminance 0.235; OKLCH L 63.7% C 0.172 H 314.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B166D2
RGBrgb(177, 102, 210)
HSLhsl(282, 55%, 61%)
HSVhsv(282, 51%, 82%)
CMYKcmyk(15.7%, 51.4%, 0%, 17.6%)
CIE-LABlab(55.59, 48.15, -43.83)
CIE-LCHlch(55.59, 65.11, 317.69°)
OKLaboklab(63.72% 0.1204 -0.1221)
OKLCHoklch(63.72% 0.172 314.6)
XYZxyz(34.5138, 23.5040, 63.6789)
Luminance0.2350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166D2 #87D266
analogous
#7B66D2 #B166D2 #D266BD
triadic
#B166D2 #D2B166 #66D2B1
tetradic
#B166D2 #D27B66 #87D266 #66BDD2
square
#B166D2 #D27B66 #87D266 #66BDD2
split-complementary
#B166D2 #BDD266 #66D27B
monochromatic
#732B93 #9839C2 #B166D2 #C995E0 #E1C5EE

Accessibility & contrast

On white

3.68
#B166D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#B166D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166D2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166D2#FFFFFF#000000##000000
##B166D21.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D81D6
Deuteranopia (green-blind)
#6587CF
Tritanopia (blue-blind)
#AF7793
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b166d2;
/* rgb */ color: rgb(177, 102, 210);
/* oklch */ color: oklch(63.7% 0.172 314.6);
Tailwind
colors: {
  custom: {
    50: '#ca94e0',
    500: '#b166d2',
    950: '#000000',
  },
}
SCSS
$custom: #b166d2;
$custom-light: #ca94e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b166d2",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 210
  },
  "hsl": {
    "h": 281.667,
    "s": 54.545,
    "l": 61.176
  },
  "oklch": {
    "l": 0.63723,
    "c": 0.1715,
    "h": 314.6
  },
  "luminance": 0.23503
}

Semantic roles & 50–950 ramp

primary
#B166D2
secondary
#C2DEB6
accent
#C22354
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #B166D2

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

Preview Lab → · Contrast checker → · Palette generator →

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