#B166DA#B166DA

#B166DA is a light, vivid violet. Relative luminance 0.239; OKLCH L 64.2% C 0.180 H 312.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B166DA
RGBrgb(177, 102, 218)
HSLhsl(279, 61%, 63%)
HSVhsv(279, 53%, 85%)
CMYKcmyk(18.8%, 53.2%, 0%, 14.5%)
CIE-LABlab(56.00, 49.86, -47.70)
CIE-LCHlch(56.00, 69.00, 316.27°)
OKLaboklab(64.16% 0.1211 -0.1334)
OKLCHoklch(64.16% 0.18 312.2)
XYZxyz(35.5355, 23.9126, 69.0597)
Luminance0.2391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166DA #8FDA66
analogous
#7766DA #B166DA #DA66C9
triadic
#B166DA #DAB166 #66DAB1
tetradic
#B166DA #DA7766 #8FDA66 #66C9DA
square
#B166DA #DA7766 #8FDA66 #66C9DA
split-complementary
#B166DA #C9DA66 #66DA77
monochromatic
#74269F #9835CE #B166DA #CA97E6 #E3C9F2

Accessibility & contrast

On white

3.63
#B166DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#B166DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166DA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166DA#FFFFFF#000000##000000
##B166DA1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4782DE
Deuteranopia (green-blind)
#6088D7
Tritanopia (blue-blind)
#AD7996
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b166da;
/* rgb */ color: rgb(177, 102, 218);
/* oklch */ color: oklch(64.2% 0.180 312.2);
Tailwind
colors: {
  custom: {
    50: '#cb94e6',
    500: '#b166da',
    950: '#000000',
  },
}
SCSS
$custom: #b166da;
$custom-light: #cb94e6;
$custom-dark: #000000;
JSON
{
  "hex": "#b166da",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 218
  },
  "hsl": {
    "h": 278.793,
    "s": 61.053,
    "l": 62.745
  },
  "oklch": {
    "l": 0.64162,
    "c": 0.18017,
    "h": 312.2
  },
  "luminance": 0.23912
}

Semantic roles & 50–950 ramp

primary
#B166DA
secondary
#C8E3B9
accent
#C91D5A
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166DA

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

Preview Lab → · Contrast checker → · Palette generator →

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