#B166EA#B166EA

#B166EA is a light, vivid violet. Relative luminance 0.248; OKLCH L 65.1% C 0.198 H 308.1°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B166EA
RGBrgb(177, 102, 234)
HSLhsl(274, 76%, 66%)
HSVhsv(274, 56%, 92%)
CMYKcmyk(24.4%, 56.4%, 0%, 8.2%)
CIE-LABlab(56.87, 53.37, -55.30)
CIE-LCHlch(56.87, 76.85, 313.98°)
OKLaboklab(65.08% 0.1219 -0.1556)
OKLCHoklch(65.08% 0.198 308.1)
XYZxyz(37.7311, 24.7909, 80.6234)
Luminance0.2479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166EA #9FEA66
analogous
#6F66EA #B166EA #EA66E1
triadic
#B166EA #EAB166 #66EAB1
tetradic
#B166EA #EA6F66 #9FEA66 #66E1EA
square
#B166EA #EA6F66 #9FEA66 #66E1EA
split-complementary
#B166EA #E1EA66 #66EA6F
monochromatic
#761ABC #9630E3 #B166EA #CC9CF1 #E8D2F9

Accessibility & contrast

On white

3.52
#B166EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#B166EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166EA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166EA#FFFFFF#000000##000000
##B166EA1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3785EE
Deuteranopia (green-blind)
#5489E7
Tritanopia (blue-blind)
#A97F9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b166ea;
/* rgb */ color: rgb(177, 102, 234);
/* oklch */ color: oklch(65.1% 0.198 308.1);
Tailwind
colors: {
  custom: {
    50: '#cc95f1',
    500: '#b166ea',
    950: '#000000',
  },
}
SCSS
$custom: #b166ea;
$custom-light: #cc95f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b166ea",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 274.091,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65083,
    "c": 0.19767,
    "h": 308.1
  },
  "luminance": 0.2479
}

Semantic roles & 50–950 ramp

primary
#B166EA
secondary
#D3ECC0
accent
#D80D65
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166EA

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

Preview Lab → · Contrast checker → · Palette generator →

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