#B166F0#B166F0

#B166F0 is a light, highly saturated violet. Relative luminance 0.251; OKLCH L 65.4% C 0.204 H 306.7°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#B166F0
RGBrgb(177, 102, 240)
HSLhsl(273, 82%, 67%)
HSVhsv(273, 58%, 94%)
CMYKcmyk(26.3%, 57.5%, 0%, 5.9%)
CIE-LABlab(57.21, 54.72, -58.10)
CIE-LCHlch(57.21, 79.81, 313.29°)
OKLaboklab(65.44% 0.122 -0.1638)
OKLCHoklch(65.44% 0.204 306.7)
XYZxyz(38.6077, 25.1415, 85.2401)
Luminance0.2514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166F0 #A5F066
analogous
#6C66F0 #B166F0 #F066EA
triadic
#B166F0 #F0B166 #66F0B1
tetradic
#B166F0 #F06C66 #A5F066 #66EAF0
square
#B166F0 #F06C66 #A5F066 #66EAF0
split-complementary
#B166F0 #EAF066 #66F06C
monochromatic
#7614C8 #952EEB #B166F0 #CD9EF5 #EAD5FB

Accessibility & contrast

On white

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

On black

6.03
#B166F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166F0
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166F0#FFFFFF#000000##000000
##B166F01.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F87F4
Deuteranopia (green-blind)
#4F8AED
Tritanopia (blue-blind)
#A781A1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b166f0;
/* rgb */ color: rgb(177, 102, 240);
/* oklch */ color: oklch(65.4% 0.204 306.7);
Tailwind
colors: {
  custom: {
    50: '#cc95f6',
    500: '#b166f0',
    950: '#000000',
  },
}
SCSS
$custom: #b166f0;
$custom-light: #cc95f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b166f0",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 240
  },
  "hsl": {
    "h": 272.609,
    "s": 82.143,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65444,
    "c": 0.20425,
    "h": 306.7
  },
  "luminance": 0.25141
}

Semantic roles & 50–950 ramp

primary
#B166F0
secondary
#D7EFC3
accent
#DF0769
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166F0

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

Preview Lab → · Contrast checker → · Palette generator →

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