#B166F4#B166F4

#B166F4 is a light, highly saturated violet. Relative luminance 0.254; OKLCH L 65.7% C 0.209 H 305.8°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#B166F4
RGBrgb(177, 102, 244)
HSLhsl(272, 87%, 68%)
HSVhsv(272, 58%, 96%)
CMYKcmyk(27.5%, 58.2%, 0%, 4.3%)
CIE-LABlab(57.45, 55.63, -59.95)
CIE-LCHlch(57.45, 81.79, 312.86°)
OKLaboklab(65.69% 0.122 -0.1692)
OKLCHoklch(65.69% 0.209 305.8)
XYZxyz(39.2085, 25.3818, 88.4040)
Luminance0.2538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166F4 #A9F466
analogous
#6A66F4 #B166F4 #F466F0
triadic
#B166F4 #F4B166 #66F4B1
tetradic
#B166F4 #F46A66 #A9F466 #66F0F4
square
#B166F4 #F46A66 #A9F466 #66F0F4
split-complementary
#B166F4 #F0F466 #66F46A
monochromatic
#750FD1 #942DF0 #B166F4 #CE9FF8 #EBD8FC

Accessibility & contrast

On white

3.46
#B166F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#B166F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166F4
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166F4#FFFFFF#000000##000000
##B166F41.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2888F9
Deuteranopia (green-blind)
#4B8AF1
Tritanopia (blue-blind)
#A682A4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b166f4;
/* rgb */ color: rgb(177, 102, 244);
/* oklch */ color: oklch(65.7% 0.209 305.8);
Tailwind
colors: {
  custom: {
    50: '#cc95f8',
    500: '#b166f4',
    950: '#000000',
  },
}
SCSS
$custom: #b166f4;
$custom-light: #cc95f8;
$custom-dark: #000000;
JSON
{
  "hex": "#b166f4",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 244
  },
  "hsl": {
    "h": 271.69,
    "s": 86.585,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65688,
    "c": 0.20864,
    "h": 305.8
  },
  "luminance": 0.25382
}

Semantic roles & 50–950 ramp

primary
#B166F4
secondary
#DAF1C5
accent
#E3026C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166F4

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

Preview Lab → · Contrast checker → · Palette generator →

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