#B166F5#B166F5

#B166F5 is a light, highly saturated violet. Relative luminance 0.254; OKLCH L 65.8% C 0.210 H 305.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#B166F5
RGBrgb(177, 102, 245)
HSLhsl(271, 88%, 68%)
HSVhsv(271, 58%, 96%)
CMYKcmyk(27.8%, 58.4%, 0%, 3.9%)
CIE-LABlab(57.50, 55.86, -60.41)
CIE-LCHlch(57.50, 82.28, 312.76°)
OKLaboklab(65.75% 0.122 -0.1706)
OKLCHoklch(65.75% 0.21 305.6)
XYZxyz(39.3607, 25.4427, 89.2059)
Luminance0.2544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166F5 #AAF566
analogous
#6A66F5 #B166F5 #F566F1
triadic
#B166F5 #F5B166 #66F5B1
tetradic
#B166F5 #F56A66 #AAF566 #66F1F5
square
#B166F5 #F56A66 #AAF566 #66F1F5
split-complementary
#B166F5 #F1F566 #66F56A
monochromatic
#750ED3 #942DF1 #B166F5 #CE9FF9 #ECD9FD

Accessibility & contrast

On white

3.45
#B166F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#B166F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166F5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166F5#FFFFFF#000000##000000
##B166F51.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2688FA
Deuteranopia (green-blind)
#4A8AF2
Tritanopia (blue-blind)
#A582A4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b166f5;
/* rgb */ color: rgb(177, 102, 245);
/* oklch */ color: oklch(65.8% 0.210 305.6);
Tailwind
colors: {
  custom: {
    50: '#cc95f9',
    500: '#b166f5',
    950: '#000000',
  },
}
SCSS
$custom: #b166f5;
$custom-light: #cc95f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b166f5",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 245
  },
  "hsl": {
    "h": 271.469,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6575,
    "c": 0.20973,
    "h": 305.6
  },
  "luminance": 0.25442
}

Semantic roles & 50–950 ramp

primary
#B166F5
secondary
#DAF1C6
accent
#E4016D
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166F5

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

Preview Lab → · Contrast checker → · Palette generator →

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