#B166FB#B166FB

#B166FB is a light, highly saturated violet. Relative luminance 0.258; OKLCH L 66.1% C 0.216 H 304.3°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#B166FB
RGBrgb(177, 102, 251)
HSLhsl(270, 95%, 69%)
HSVhsv(270, 59%, 98%)
CMYKcmyk(29.5%, 59.4%, 0%, 1.6%)
CIE-LABlab(57.86, 57.24, -63.16)
CIE-LCHlch(57.86, 85.24, 312.18°)
OKLaboklab(66.12% 0.1219 -0.1787)
OKLCHoklch(66.12% 0.216 304.3)
XYZxyz(40.2916, 25.8150, 94.1082)
Luminance0.2581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166FB #B0FB66
analogous
#6766FB #B166FB #FB66FB
triadic
#B166FB #FBB166 #66FBB1
tetradic
#B166FB #FB6766 #B0FB66 #66FBFB
square
#B166FB #FB6766 #B0FB66 #66FBFB
split-complementary
#B166FB #FBFB66 #66FB67
monochromatic
#7406E1 #932AF9 #B166FB #CFA2FD #EEDDFE

Accessibility & contrast

On white

3.41
#B166FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#B166FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166FB
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166FB#FFFFFF#000000##000000
##B166FB1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1889FF
Deuteranopia (green-blind)
#438BF8
Tritanopia (blue-blind)
#A484A7
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b166fb;
/* rgb */ color: rgb(177, 102, 251);
/* oklch */ color: oklch(66.1% 0.216 304.3);
Tailwind
colors: {
  custom: {
    50: '#cc95fd',
    500: '#b166fb',
    950: '#000000',
  },
}
SCSS
$custom: #b166fb;
$custom-light: #cc95fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b166fb",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 251
  },
  "hsl": {
    "h": 270.201,
    "s": 94.904,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66124,
    "c": 0.2163,
    "h": 304.3
  },
  "luminance": 0.25815
}

Semantic roles & 50–950 ramp

primary
#B166FB
secondary
#DEF4C9
accent
#E60072
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #B166FB

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

Preview Lab → · Contrast checker → · Palette generator →

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