#B166DB#B166DB

#B166DB is a light, vivid violet. Relative luminance 0.240; OKLCH L 64.2% C 0.181 H 311.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B166DB
RGBrgb(177, 102, 219)
HSLhsl(278, 62%, 63%)
HSVhsv(278, 53%, 86%)
CMYKcmyk(19.2%, 53.4%, 0%, 14.1%)
CIE-LABlab(56.05, 50.07, -48.18)
CIE-LCHlch(56.05, 69.49, 316.10°)
OKLaboklab(64.22% 0.1212 -0.1348)
OKLCHoklch(64.22% 0.181 311.9)
XYZxyz(35.6668, 23.9651, 69.7510)
Luminance0.2396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166DB #90DB66
analogous
#7766DB #B166DB #DB66CA
triadic
#B166DB #DBB166 #66DBB1
tetradic
#B166DB #DB7766 #90DB66 #66CADB
square
#B166DB #DB7766 #90DB66 #66CADB
split-complementary
#B166DB #CADB66 #66DB77
monochromatic
#7526A1 #9834CF #B166DB #CA98E7 #E4C9F2

Accessibility & contrast

On white

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

On black

5.79
#B166DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166DB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166DB#FFFFFF#000000##000000
##B166DB1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4683DF
Deuteranopia (green-blind)
#5F88D8
Tritanopia (blue-blind)
#AC7A97
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b166db;
/* rgb */ color: rgb(177, 102, 219);
/* oklch */ color: oklch(64.2% 0.181 311.9);
Tailwind
colors: {
  custom: {
    50: '#cb94e7',
    500: '#b166db',
    950: '#000000',
  },
}
SCSS
$custom: #b166db;
$custom-light: #cb94e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b166db",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 219
  },
  "hsl": {
    "h": 278.462,
    "s": 61.905,
    "l": 62.941
  },
  "oklch": {
    "l": 0.64218,
    "c": 0.18126,
    "h": 311.9
  },
  "luminance": 0.23964
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B166DB

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

Preview Lab → · Contrast checker → · Palette generator →

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