#B166DF#B166DF

#B166DF is a light, vivid violet. Relative luminance 0.242; OKLCH L 64.4% C 0.186 H 310.9°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B166DF
RGBrgb(177, 102, 223)
HSLhsl(277, 65%, 64%)
HSVhsv(277, 54%, 87%)
CMYKcmyk(20.6%, 54.3%, 0%, 12.5%)
CIE-LABlab(56.27, 50.94, -50.09)
CIE-LCHlch(56.27, 71.45, 315.48°)
OKLaboklab(64.44% 0.1214 -0.1404)
OKLCHoklch(64.44% 0.186 310.9)
XYZxyz(36.1997, 24.1783, 72.5576)
Luminance0.2418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166DF #94DF66
analogous
#7466DF #B166DF #DF66D0
triadic
#B166DF #DFB166 #66DFB1
tetradic
#B166DF #DF7466 #94DF66 #66D0DF
square
#B166DF #DF7466 #94DF66 #66D0DF
split-complementary
#B166DF #D0DF66 #66DF74
monochromatic
#7523A8 #9733D4 #B166DF #CB99EA #E5CBF4

Accessibility & contrast

On white

3.60
#B166DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#B166DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166DF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166DF#FFFFFF#000000##000000
##B166DF1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4383E3
Deuteranopia (green-blind)
#5C88DC
Tritanopia (blue-blind)
#AB7B99
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b166df;
/* rgb */ color: rgb(177, 102, 223);
/* oklch */ color: oklch(64.4% 0.186 310.9);
Tailwind
colors: {
  custom: {
    50: '#cb94e9',
    500: '#b166df',
    950: '#000000',
  },
}
SCSS
$custom: #b166df;
$custom-light: #cb94e9;
$custom-dark: #000000;
JSON
{
  "hex": "#b166df",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 223
  },
  "hsl": {
    "h": 277.19,
    "s": 65.405,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64443,
    "c": 0.18563,
    "h": 310.9
  },
  "luminance": 0.24178
}

Semantic roles & 50–950 ramp

primary
#B166DF
secondary
#CBE6BB
accent
#CD185D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166DF

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

Preview Lab → · Contrast checker → · Palette generator →

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