#B166E4#B166E4

#B166E4 is a light, vivid violet. Relative luminance 0.245; OKLCH L 64.7% C 0.191 H 309.6°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#B166E4
RGBrgb(177, 102, 228)
HSLhsl(276, 70%, 65%)
HSVhsv(276, 55%, 89%)
CMYKcmyk(22.4%, 55.3%, 0%, 10.6%)
CIE-LABlab(56.54, 52.04, -52.47)
CIE-LCHlch(56.54, 73.90, 314.76°)
OKLaboklab(64.73% 0.1217 -0.1473)
OKLCHoklch(64.73% 0.191 309.6)
XYZxyz(36.8837, 24.4519, 76.1604)
Luminance0.2445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166E4 #99E466
analogous
#7266E4 #B166E4 #E466D8
triadic
#B166E4 #E4B166 #66E4B1
tetradic
#B166E4 #E47266 #99E466 #66D8E4
square
#B166E4 #E47266 #99E466 #66D8E4
split-complementary
#B166E4 #D8E466 #66E472
monochromatic
#761FB0 #9632DB #B166E4 #CC9AED #E6CEF6

Accessibility & contrast

On white

3.57
#B166E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#B166E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166E4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166E4#FFFFFF#000000##000000
##B166E41.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E84E8
Deuteranopia (green-blind)
#5989E1
Tritanopia (blue-blind)
#AA7D9B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b166e4;
/* rgb */ color: rgb(177, 102, 228);
/* oklch */ color: oklch(64.7% 0.191 309.6);
Tailwind
colors: {
  custom: {
    50: '#cb94ed',
    500: '#b166e4',
    950: '#000000',
  },
}
SCSS
$custom: #b166e4;
$custom-light: #cb94ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b166e4",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 275.714,
    "s": 70,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64731,
    "c": 0.19109,
    "h": 309.6
  },
  "luminance": 0.24451
}

Semantic roles & 50–950 ramp

primary
#B166E4
secondary
#CFE9BD
accent
#D21461
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166E4

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

Preview Lab → · Contrast checker → · Palette generator →

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