#B166E8#B166E8

#B166E8 is a light, vivid violet. Relative luminance 0.247; OKLCH L 65.0% C 0.195 H 308.6°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B166E8
RGBrgb(177, 102, 232)
HSLhsl(275, 74%, 65%)
HSVhsv(275, 56%, 91%)
CMYKcmyk(23.7%, 56%, 0%, 9%)
CIE-LABlab(56.76, 52.93, -54.36)
CIE-LCHlch(56.76, 75.87, 314.23°)
OKLaboklab(64.96% 0.1218 -0.1529)
OKLCHoklch(64.96% 0.195 308.6)
XYZxyz(37.4454, 24.6766, 79.1187)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166E8 #9DE866
analogous
#7066E8 #B166E8 #E866DE
triadic
#B166E8 #E8B166 #66E8B1
tetradic
#B166E8 #E87066 #9DE866 #66DEE8
square
#B166E8 #E87066 #9DE866 #66DEE8
split-complementary
#B166E8 #DEE866 #66E870
monochromatic
#761CB8 #9631E0 #B166E8 #CC9BF0 #E7D0F8

Accessibility & contrast

On white

3.54
#B166E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#B166E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166E8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166E8#FFFFFF#000000##000000
##B166E81.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3985EC
Deuteranopia (green-blind)
#5589E5
Tritanopia (blue-blind)
#A97E9D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b166e8;
/* rgb */ color: rgb(177, 102, 232);
/* oklch */ color: oklch(65.0% 0.195 308.6);
Tailwind
colors: {
  custom: {
    50: '#cb94f0',
    500: '#b166e8',
    950: '#000000',
  },
}
SCSS
$custom: #b166e8;
$custom-light: #cb94f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b166e8",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 232
  },
  "hsl": {
    "h": 274.615,
    "s": 73.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64965,
    "c": 0.19548,
    "h": 308.6
  },
  "luminance": 0.24676
}

Semantic roles & 50–950 ramp

primary
#B166E8
secondary
#D2EBBF
accent
#D61063
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166E8

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

Preview Lab → · Contrast checker → · Palette generator →

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