#B166E5#B166E5

#B166E5 is a light, vivid violet. Relative luminance 0.245; OKLCH L 64.8% C 0.192 H 309.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#B166E5
RGBrgb(177, 102, 229)
HSLhsl(275, 71%, 65%)
HSVhsv(275, 55%, 90%)
CMYKcmyk(22.7%, 55.5%, 0%, 10.2%)
CIE-LABlab(56.59, 52.26, -52.94)
CIE-LCHlch(56.59, 74.39, 314.63°)
OKLaboklab(64.79% 0.1217 -0.1487)
OKLCHoklch(64.79% 0.192 309.3)
XYZxyz(37.0230, 24.5076, 76.8936)
Luminance0.2451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166E5 #9AE566
analogous
#7166E5 #B166E5 #E566DA
triadic
#B166E5 #E5B166 #66E5B1
tetradic
#B166E5 #E57166 #9AE566 #66DAE5
square
#B166E5 #E57166 #9AE566 #66DAE5
split-complementary
#B166E5 #DAE566 #66E571
monochromatic
#761EB2 #9632DC #B166E5 #CC9AEE #E6CFF7

Accessibility & contrast

On white

3.56
#B166E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#B166E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166E5
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166E5#FFFFFF#000000##000000
##B166E51.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D84E9
Deuteranopia (green-blind)
#5889E2
Tritanopia (blue-blind)
#AA7D9C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b166e5;
/* rgb */ color: rgb(177, 102, 229);
/* oklch */ color: oklch(64.8% 0.192 309.3);
Tailwind
colors: {
  custom: {
    50: '#cb94ee',
    500: '#b166e5',
    950: '#000000',
  },
}
SCSS
$custom: #b166e5;
$custom-light: #cb94ee;
$custom-dark: #000000;
JSON
{
  "hex": "#b166e5",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 275.433,
    "s": 70.95,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64789,
    "c": 0.19219,
    "h": 309.3
  },
  "luminance": 0.24507
}

Semantic roles & 50–950 ramp

primary
#B166E5
secondary
#CFE9BE
accent
#D31361
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166E5

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

Preview Lab → · Contrast checker → · Palette generator →

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