#B166D8#B166D8

#B166D8 is a light, vivid violet. Relative luminance 0.238; OKLCH L 64.1% C 0.178 H 312.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B166D8
RGBrgb(177, 102, 216)
HSLhsl(279, 59%, 62%)
HSVhsv(279, 53%, 85%)
CMYKcmyk(18.1%, 52.8%, 0%, 15.3%)
CIE-LABlab(55.90, 49.42, -46.74)
CIE-LCHlch(55.90, 68.02, 316.60°)
OKLaboklab(64.05% 0.1209 -0.1306)
OKLCHoklch(64.05% 0.178 312.8)
XYZxyz(35.2754, 23.8086, 67.6897)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166D8 #8DD866
analogous
#7866D8 #B166D8 #D866C6
triadic
#B166D8 #D8B166 #66D8B1
tetradic
#B166D8 #D87866 #8DD866 #66C6D8
square
#B166D8 #D87866 #8DD866 #66C6D8
split-complementary
#B166D8 #C6D866 #66D878
monochromatic
#74289C #9835CC #B166D8 #CA97E4 #E3C8F1

Accessibility & contrast

On white

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

On black

5.76
#B166D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166D8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166D8#FFFFFF#000000##000000
##B166D81.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4982DC
Deuteranopia (green-blind)
#6188D5
Tritanopia (blue-blind)
#AD7995
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b166d8;
/* rgb */ color: rgb(177, 102, 216);
/* oklch */ color: oklch(64.1% 0.178 312.8);
Tailwind
colors: {
  custom: {
    50: '#cb94e4',
    500: '#b166d8',
    950: '#000000',
  },
}
SCSS
$custom: #b166d8;
$custom-light: #cb94e4;
$custom-dark: #000000;
JSON
{
  "hex": "#b166d8",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 216
  },
  "hsl": {
    "h": 279.474,
    "s": 59.375,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64051,
    "c": 0.17799,
    "h": 312.8
  },
  "luminance": 0.23808
}

Semantic roles & 50–950 ramp

primary
#B166D8
secondary
#C6E2B8
accent
#C71E58
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166D8

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

Preview Lab → · Contrast checker → · Palette generator →

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