#B166FA#B166FA

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

Color values

HEX#B166FA
RGBrgb(177, 102, 250)
HSLhsl(270, 94%, 69%)
HSVhsv(270, 59%, 98%)
CMYKcmyk(29.2%, 59.2%, 0%, 2%)
CIE-LABlab(57.80, 57.01, -62.71)
CIE-LCHlch(57.80, 84.75, 312.27°)
OKLaboklab(66.06% 0.122 -0.1773)
OKLCHoklch(66.06% 0.215 304.5)
XYZxyz(40.1343, 25.7522, 93.2803)
Luminance0.2575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166FA #AFFA66
analogous
#6766FA #B166FA #FA66F9
triadic
#B166FA #FAB166 #66FAB1
tetradic
#B166FA #FA6766 #AFFA66 #66F9FA
square
#B166FA #FA6766 #AFFA66 #66F9FA
split-complementary
#B166FA #F9FA66 #66FA67
monochromatic
#7407DE #932BF8 #B166FA #CFA1FC #EDDDFE

Accessibility & contrast

On white

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

On black

6.15
#B166FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166FA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166FA#FFFFFF#000000##000000
##B166FA1.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B89FF
Deuteranopia (green-blind)
#448BF7
Tritanopia (blue-blind)
#A484A7
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b166fa;
/* rgb */ color: rgb(177, 102, 250);
/* oklch */ color: oklch(66.1% 0.215 304.5);
Tailwind
colors: {
  custom: {
    50: '#cc95fd',
    500: '#b166fa',
    950: '#000000',
  },
}
SCSS
$custom: #b166fa;
$custom-light: #cc95fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b166fa",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 250
  },
  "hsl": {
    "h": 270.405,
    "s": 93.671,
    "l": 69.02
  },
  "oklch": {
    "l": 0.66062,
    "c": 0.21522,
    "h": 304.5
  },
  "luminance": 0.25752
}

Semantic roles & 50–950 ramp

primary
#B166FA
secondary
#DEF4C8
accent
#E60071
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #B166FA

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

Preview Lab → · Contrast checker → · Palette generator →

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