#B166D9#B166D9

#B166D9 is a light, vivid violet. Relative luminance 0.239; OKLCH L 64.1% C 0.179 H 312.5°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#B166D9
RGBrgb(177, 102, 217)
HSLhsl(279, 60%, 63%)
HSVhsv(279, 53%, 85%)
CMYKcmyk(18.4%, 53%, 0%, 14.9%)
CIE-LABlab(55.95, 49.64, -47.22)
CIE-LCHlch(55.95, 68.51, 316.43°)
OKLaboklab(64.11% 0.121 -0.132)
OKLCHoklch(64.11% 0.179 312.5)
XYZxyz(35.4050, 23.8604, 68.3726)
Luminance0.2386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166D9 #8ED966
analogous
#7766D9 #B166D9 #D966C8
triadic
#B166D9 #D9B166 #66D9B1
tetradic
#B166D9 #D97766 #8ED966 #66C8D9
square
#B166D9 #D97766 #8ED966 #66C8D9
split-complementary
#B166D9 #C8D966 #66D977
monochromatic
#74279D #9835CD #B166D9 #CA97E5 #E3C8F1

Accessibility & contrast

On white

3.64
#B166D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#B166D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166D9
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166D9#FFFFFF#000000##000000
##B166D91.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4882DD
Deuteranopia (green-blind)
#6088D6
Tritanopia (blue-blind)
#AD7996
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b166d9;
/* rgb */ color: rgb(177, 102, 217);
/* oklch */ color: oklch(64.1% 0.179 312.5);
Tailwind
colors: {
  custom: {
    50: '#cb94e5',
    500: '#b166d9',
    950: '#000000',
  },
}
SCSS
$custom: #b166d9;
$custom-light: #cb94e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b166d9",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 217
  },
  "hsl": {
    "h": 279.13,
    "s": 60.209,
    "l": 62.549
  },
  "oklch": {
    "l": 0.64106,
    "c": 0.17908,
    "h": 312.5
  },
  "luminance": 0.2386
}

Semantic roles & 50–950 ramp

primary
#B166D9
secondary
#C7E2B8
accent
#C81E59
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166D9

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

Preview Lab → · Contrast checker → · Palette generator →

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