#B166FE#B166FE

#B166FE is a light, highly saturated violet. Relative luminance 0.260; OKLCH L 66.3% C 0.220 H 303.7°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#B166FE
RGBrgb(177, 102, 254)
HSLhsl(270, 99%, 70%)
HSVhsv(270, 60%, 100%)
CMYKcmyk(30.3%, 59.8%, 0%, 0.4%)
CIE-LABlab(58.04, 57.93, -64.53)
CIE-LCHlch(58.04, 86.72, 311.91°)
OKLaboklab(66.32% 0.1219 -0.1827)
OKLCHoklch(66.32% 0.22 303.7)
XYZxyz(40.7682, 26.0057, 96.6186)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166FE #B3FE66
analogous
#6667FE #B166FE #FD66FE
triadic
#B166FE #FEB166 #66FEB1
tetradic
#B166FE #FE6667 #B3FE66 #66FEFD
square
#B166FE #FE6667 #B3FE66 #66FEFD
split-complementary
#B166FE #FEFD66 #67FE66
monochromatic
#7302E8 #9229FE #B166FE #D0A3FE #EFE0FF

Accessibility & contrast

On white

3.39
#B166FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#B166FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166FE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166FE#FFFFFF#000000##000000
##B166FE1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C8AFF
Deuteranopia (green-blind)
#3F8BFB
Tritanopia (blue-blind)
#A385A9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b166fe;
/* rgb */ color: rgb(177, 102, 254);
/* oklch */ color: oklch(66.3% 0.220 303.7);
Tailwind
colors: {
  custom: {
    50: '#cd95ff',
    500: '#b166fe',
    950: '#000000',
  },
}
SCSS
$custom: #b166fe;
$custom-light: #cd95ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b166fe",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 254
  },
  "hsl": {
    "h": 269.605,
    "s": 98.701,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66315,
    "c": 0.21959,
    "h": 303.7
  },
  "luminance": 0.26006
}

Semantic roles & 50–950 ramp

primary
#B166FE
secondary
#E0F5CA
accent
#E60074
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #B166FE

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

Preview Lab → · Contrast checker → · Palette generator →

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