#B166E6#B166E6

#B166E6 is a light, vivid violet. Relative luminance 0.246; OKLCH L 64.8% C 0.193 H 309.1°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B166E6
RGBrgb(177, 102, 230)
HSLhsl(275, 72%, 65%)
HSVhsv(275, 56%, 90%)
CMYKcmyk(23%, 55.7%, 0%, 9.8%)
CIE-LABlab(56.65, 52.48, -53.42)
CIE-LCHlch(56.65, 74.88, 314.49°)
OKLaboklab(64.85% 0.1218 -0.1501)
OKLCHoklch(64.85% 0.193 309.1)
XYZxyz(37.1630, 24.5636, 77.6311)
Luminance0.2456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166E6 #9BE666
analogous
#7166E6 #B166E6 #E666DB
triadic
#B166E6 #E6B166 #66E6B1
tetradic
#B166E6 #E67166 #9BE666 #66DBE6
square
#B166E6 #E67166 #9BE666 #66DBE6
split-complementary
#B166E6 #DBE666 #66E671
monochromatic
#761DB4 #9631DD #B166E6 #CC9BEF #E7CFF7

Accessibility & contrast

On white

3.55
#B166E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#B166E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166E6
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166E6#FFFFFF#000000##000000
##B166E61.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C85EA
Deuteranopia (green-blind)
#5789E3
Tritanopia (blue-blind)
#AA7D9C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b166e6;
/* rgb */ color: rgb(177, 102, 230);
/* oklch */ color: oklch(64.8% 0.193 309.1);
Tailwind
colors: {
  custom: {
    50: '#cb94ee',
    500: '#b166e6',
    950: '#000000',
  },
}
SCSS
$custom: #b166e6;
$custom-light: #cb94ee;
$custom-dark: #000000;
JSON
{
  "hex": "#b166e6",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 230
  },
  "hsl": {
    "h": 275.156,
    "s": 71.91,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64847,
    "c": 0.19328,
    "h": 309.1
  },
  "luminance": 0.24563
}

Semantic roles & 50–950 ramp

primary
#B166E6
secondary
#D0EABE
accent
#D41262
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166E6

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

Preview Lab → · Contrast checker → · Palette generator →

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