#B166E2#B166E2

#B166E2 is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.6% C 0.189 H 310.1°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B166E2
RGBrgb(177, 102, 226)
HSLhsl(276, 68%, 64%)
HSVhsv(276, 55%, 89%)
CMYKcmyk(21.7%, 54.9%, 0%, 11.4%)
CIE-LABlab(56.43, 51.60, -51.52)
CIE-LCHlch(56.43, 72.92, 315.04°)
OKLaboklab(64.61% 0.1216 -0.1446)
OKLCHoklch(64.61% 0.189 310.1)
XYZxyz(36.6077, 24.3415, 74.7067)
Luminance0.2434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166E2 #97E266
analogous
#7366E2 #B166E2 #E266D5
triadic
#B166E2 #E2B166 #66E2B1
tetradic
#B166E2 #E27366 #97E266 #66D5E2
square
#B166E2 #E27366 #97E266 #66D5E2
split-complementary
#B166E2 #D5E266 #66E273
monochromatic
#7521AD #9733D8 #B166E2 #CB99EC #E5CDF6

Accessibility & contrast

On white

3.58
#B166E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#B166E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166E2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166E2#FFFFFF#000000##000000
##B166E21.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4084E6
Deuteranopia (green-blind)
#5A89DF
Tritanopia (blue-blind)
#AB7C9A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b166e2;
/* rgb */ color: rgb(177, 102, 226);
/* oklch */ color: oklch(64.6% 0.189 310.1);
Tailwind
colors: {
  custom: {
    50: '#cb94ec',
    500: '#b166e2',
    950: '#000000',
  },
}
SCSS
$custom: #b166e2;
$custom-light: #cb94ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b166e2",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 226
  },
  "hsl": {
    "h": 276.29,
    "s": 68.132,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64615,
    "c": 0.1889,
    "h": 310.1
  },
  "luminance": 0.24341
}

Semantic roles & 50–950 ramp

primary
#B166E2
secondary
#CDE7BC
accent
#D0155F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166E2

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

Preview Lab → · Contrast checker → · Palette generator →

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