#B166EC#B166EC

#B166EC is a light, vivid violet. Relative luminance 0.249; OKLCH L 65.2% C 0.200 H 307.6°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B166EC
RGBrgb(177, 102, 236)
HSLhsl(274, 78%, 66%)
HSVhsv(274, 57%, 93%)
CMYKcmyk(25%, 56.8%, 0%, 7.5%)
CIE-LABlab(56.98, 53.82, -56.23)
CIE-LCHlch(56.98, 77.84, 313.74°)
OKLaboklab(65.2% 0.1219 -0.1583)
OKLCHoklch(65.2% 0.2 307.6)
XYZxyz(38.0201, 24.9065, 82.1451)
Luminance0.2491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166EC #A1EC66
analogous
#6E66EC #B166EC #EC66E4
triadic
#B166EC #ECB166 #66ECB1
tetradic
#B166EC #EC6E66 #A1EC66 #66E4EC
square
#B166EC #EC6E66 #A1EC66 #66E4EC
split-complementary
#B166EC #E4EC66 #66EC6E
monochromatic
#7618C0 #9530E5 #B166EC #CD9CF3 #E9D3FA

Accessibility & contrast

On white

3.51
#B166EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#B166EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166EC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166EC#FFFFFF#000000##000000
##B166EC1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3486F0
Deuteranopia (green-blind)
#528AE9
Tritanopia (blue-blind)
#A87F9F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b166ec;
/* rgb */ color: rgb(177, 102, 236);
/* oklch */ color: oklch(65.2% 0.200 307.6);
Tailwind
colors: {
  custom: {
    50: '#cc95f3',
    500: '#b166ec',
    950: '#000000',
  },
}
SCSS
$custom: #b166ec;
$custom-light: #cc95f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b166ec",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 273.582,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65202,
    "c": 0.19986,
    "h": 307.6
  },
  "luminance": 0.24906
}

Semantic roles & 50–950 ramp

primary
#B166EC
secondary
#D4EDC1
accent
#DA0B66
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166EC

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

Preview Lab → · Contrast checker → · Palette generator →

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