#B166F1#B166F1

#B166F1 is a light, highly saturated violet. Relative luminance 0.252; OKLCH L 65.5% C 0.205 H 306.5°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#B166F1
RGBrgb(177, 102, 241)
HSLhsl(272, 83%, 67%)
HSVhsv(272, 58%, 95%)
CMYKcmyk(26.6%, 57.7%, 0%, 5.5%)
CIE-LABlab(57.27, 54.95, -58.56)
CIE-LCHlch(57.27, 80.31, 313.18°)
OKLaboklab(65.5% 0.122 -0.1652)
OKLCHoklch(65.5% 0.205 306.5)
XYZxyz(38.7567, 25.2011, 86.0246)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166F1 #A6F166
analogous
#6B66F1 #B166F1 #F166EC
triadic
#B166F1 #F1B166 #66F1B1
tetradic
#B166F1 #F16B66 #A6F166 #66ECF1
square
#B166F1 #F16B66 #A6F166 #66ECF1
split-complementary
#B166F1 #ECF166 #66F16B
monochromatic
#7612CA #942EEC #B166F1 #CE9EF6 #EAD6FB

Accessibility & contrast

On white

3.48
#B166F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#B166F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166F1
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166F1#FFFFFF#000000##000000
##B166F11.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D87F5
Deuteranopia (green-blind)
#4E8AEE
Tritanopia (blue-blind)
#A781A2
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b166f1;
/* rgb */ color: rgb(177, 102, 241);
/* oklch */ color: oklch(65.5% 0.205 306.5);
Tailwind
colors: {
  custom: {
    50: '#cc95f6',
    500: '#b166f1',
    950: '#000000',
  },
}
SCSS
$custom: #b166f1;
$custom-light: #cc95f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b166f1",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 241
  },
  "hsl": {
    "h": 272.374,
    "s": 83.234,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65504,
    "c": 0.20535,
    "h": 306.5
  },
  "luminance": 0.25201
}

Semantic roles & 50–950 ramp

primary
#B166F1
secondary
#D8EFC3
accent
#E0066A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166F1

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

Preview Lab → · Contrast checker → · Palette generator →

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