#B166F7#B166F7

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

Color values

HEX#B166F7
RGBrgb(177, 102, 247)
HSLhsl(271, 90%, 68%)
HSVhsv(271, 59%, 97%)
CMYKcmyk(28.3%, 58.7%, 0%, 3.1%)
CIE-LABlab(57.62, 56.32, -61.33)
CIE-LCHlch(57.62, 83.27, 312.56°)
OKLaboklab(65.87% 0.122 -0.1733)
OKLCHoklch(65.87% 0.212 305.1)
XYZxyz(39.6677, 25.5655, 90.8225)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166F7 #ACF766
analogous
#6866F7 #B166F7 #F766F5
triadic
#B166F7 #F7B166 #66F7B1
tetradic
#B166F7 #F76866 #ACF766 #66F5F7
square
#B166F7 #F76866 #ACF766 #66F5F7
split-complementary
#B166F7 #F5F766 #66F768
monochromatic
#750BD7 #932CF4 #B166F7 #CFA0FA #ECDAFD

Accessibility & contrast

On white

3.44
#B166F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#B166F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166F7
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166F7#FFFFFF#000000##000000
##B166F71.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2288FC
Deuteranopia (green-blind)
#478BF4
Tritanopia (blue-blind)
#A583A5
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b166f7;
/* rgb */ color: rgb(177, 102, 247);
/* oklch */ color: oklch(65.9% 0.212 305.1);
Tailwind
colors: {
  custom: {
    50: '#cc95fb',
    500: '#b166f7',
    950: '#000000',
  },
}
SCSS
$custom: #b166f7;
$custom-light: #cc95fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b166f7",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 247
  },
  "hsl": {
    "h": 271.034,
    "s": 90.062,
    "l": 68.431
  },
  "oklch": {
    "l": 0.65874,
    "c": 0.21192,
    "h": 305.1
  },
  "luminance": 0.25565
}

Semantic roles & 50–950 ramp

primary
#B166F7
secondary
#DCF2C7
accent
#E6006F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166F7

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

Preview Lab → · Contrast checker → · Palette generator →

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