#B166EB#B166EB

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

Color values

HEX#B166EB
RGBrgb(177, 102, 235)
HSLhsl(274, 77%, 66%)
HSVhsv(274, 57%, 92%)
CMYKcmyk(24.7%, 56.6%, 0%, 7.8%)
CIE-LABlab(56.93, 53.60, -55.77)
CIE-LCHlch(56.93, 77.35, 313.86°)
OKLaboklab(65.14% 0.1219 -0.157)
OKLCHoklch(65.14% 0.199 307.8)
XYZxyz(37.8752, 24.8485, 81.3821)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166EB #A0EB66
analogous
#6E66EB #B166EB #EB66E2
triadic
#B166EB #EBB166 #66EBB1
tetradic
#B166EB #EB6E66 #A0EB66 #66E2EB
square
#B166EB #EB6E66 #A0EB66 #66E2EB
split-complementary
#B166EB #E2EB66 #66EB6E
monochromatic
#7619BE #9530E4 #B166EB #CD9CF2 #E8D2F9

Accessibility & contrast

On white

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

On black

5.97
#B166EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166EB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166EB#FFFFFF#000000##000000
##B166EB1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3686EF
Deuteranopia (green-blind)
#5389E8
Tritanopia (blue-blind)
#A87F9F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b166eb;
/* rgb */ color: rgb(177, 102, 235);
/* oklch */ color: oklch(65.1% 0.199 307.8);
Tailwind
colors: {
  custom: {
    50: '#cc95f2',
    500: '#b166eb',
    950: '#000000',
  },
}
SCSS
$custom: #b166eb;
$custom-light: #cc95f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b166eb",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 273.835,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65143,
    "c": 0.19876,
    "h": 307.8
  },
  "luminance": 0.24848
}

Semantic roles & 50–950 ramp

primary
#B166EB
secondary
#D4ECC1
accent
#D90C66
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166EB

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

Preview Lab → · Contrast checker → · Palette generator →

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