#B166E9#B166E9

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

Color values

HEX#B166E9
RGBrgb(177, 102, 233)
HSLhsl(274, 75%, 66%)
HSVhsv(274, 56%, 91%)
CMYKcmyk(24%, 56.2%, 0%, 8.6%)
CIE-LABlab(56.81, 53.15, -54.83)
CIE-LCHlch(56.81, 76.36, 314.11°)
OKLaboklab(65.02% 0.1219 -0.1542)
OKLCHoklch(65.02% 0.197 308.3)
XYZxyz(37.5879, 24.7336, 79.8689)
Luminance0.2473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166E9 #9EE966
analogous
#6F66E9 #B166E9 #E966DF
triadic
#B166E9 #E9B166 #66E9B1
tetradic
#B166E9 #E96F66 #9EE966 #66DFE9
square
#B166E9 #E96F66 #9EE966 #66DFE9
split-complementary
#B166E9 #DFE966 #66E96F
monochromatic
#761BBA #9630E1 #B166E9 #CC9CF1 #E8D1F8

Accessibility & contrast

On white

3.53
#B166E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#B166E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166E9
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166E9#FFFFFF#000000##000000
##B166E91.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3885ED
Deuteranopia (green-blind)
#5589E6
Tritanopia (blue-blind)
#A97E9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b166e9;
/* rgb */ color: rgb(177, 102, 233);
/* oklch */ color: oklch(65.0% 0.197 308.3);
Tailwind
colors: {
  custom: {
    50: '#cb95f1',
    500: '#b166e9',
    950: '#000000',
  },
}
SCSS
$custom: #b166e9;
$custom-light: #cb95f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b166e9",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 233
  },
  "hsl": {
    "h": 274.351,
    "s": 74.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.65024,
    "c": 0.19658,
    "h": 308.3
  },
  "luminance": 0.24733
}

Semantic roles & 50–950 ramp

primary
#B166E9
secondary
#D2EBC0
accent
#D70E64
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166E9

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

Preview Lab → · Contrast checker → · Palette generator →

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