#B166F8#B166F8

#B166F8 is a light, highly saturated violet. Relative luminance 0.256; OKLCH L 65.9% C 0.213 H 304.9°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#B166F8
RGBrgb(177, 102, 248)
HSLhsl(271, 91%, 69%)
HSVhsv(271, 59%, 97%)
CMYKcmyk(28.6%, 58.9%, 0%, 2.7%)
CIE-LABlab(57.68, 56.55, -61.79)
CIE-LCHlch(57.68, 83.76, 312.46°)
OKLaboklab(65.94% 0.122 -0.1746)
OKLCHoklch(65.94% 0.213 304.9)
XYZxyz(39.8224, 25.6274, 91.6374)
Luminance0.2563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166F8 #ADF866
analogous
#6866F8 #B166F8 #F866F6
triadic
#B166F8 #F8B166 #66F8B1
tetradic
#B166F8 #F86866 #ADF866 #66F6F8
square
#B166F8 #F86866 #ADF866 #66F6F8
split-complementary
#B166F8 #F6F866 #66F868
monochromatic
#750ADA #932BF5 #B166F8 #CFA1FB #EDDBFD

Accessibility & contrast

On white

3.43
#B166F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#B166F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166F8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166F8#FFFFFF#000000##000000
##B166F81.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2088FD
Deuteranopia (green-blind)
#468BF5
Tritanopia (blue-blind)
#A583A6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b166f8;
/* rgb */ color: rgb(177, 102, 248);
/* oklch */ color: oklch(65.9% 0.213 304.9);
Tailwind
colors: {
  custom: {
    50: '#cc95fb',
    500: '#b166f8',
    950: '#000000',
  },
}
SCSS
$custom: #b166f8;
$custom-light: #cc95fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b166f8",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 248
  },
  "hsl": {
    "h": 270.822,
    "s": 91.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.65936,
    "c": 0.21302,
    "h": 304.9
  },
  "luminance": 0.25627
}

Semantic roles & 50–950 ramp

primary
#B166F8
secondary
#DCF3C7
accent
#E60070
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #B166F8

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

Preview Lab → · Contrast checker → · Palette generator →

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