#B166EF#B166EF

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

Color values

HEX#B166EF
RGBrgb(177, 102, 239)
HSLhsl(273, 81%, 67%)
HSVhsv(273, 57%, 94%)
CMYKcmyk(25.9%, 57.3%, 0%, 6.3%)
CIE-LABlab(57.16, 54.50, -57.63)
CIE-LCHlch(57.16, 79.32, 313.40°)
OKLaboklab(65.38% 0.122 -0.1624)
OKLCHoklch(65.38% 0.203 306.9)
XYZxyz(38.4596, 25.0823, 84.4599)
Luminance0.2508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166EF #A4EF66
analogous
#6D66EF #B166EF #EF66E8
triadic
#B166EF #EFB166 #66EFB1
tetradic
#B166EF #EF6D66 #A4EF66 #66E8EF
square
#B166EF #EF6D66 #A4EF66 #66E8EF
split-complementary
#B166EF #E8EF66 #66EF6D
monochromatic
#7615C6 #952FE9 #B166EF #CD9DF5 #E9D5FB

Accessibility & contrast

On white

3.49
#B166EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#B166EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166EF
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166EF#FFFFFF#000000##000000
##B166EF1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3087F3
Deuteranopia (green-blind)
#4F8AEC
Tritanopia (blue-blind)
#A780A1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b166ef;
/* rgb */ color: rgb(177, 102, 239);
/* oklch */ color: oklch(65.4% 0.203 306.9);
Tailwind
colors: {
  custom: {
    50: '#cc95f5',
    500: '#b166ef',
    950: '#000000',
  },
}
SCSS
$custom: #b166ef;
$custom-light: #cc95f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b166ef",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 272.847,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.65383,
    "c": 0.20315,
    "h": 306.9
  },
  "luminance": 0.25082
}

Semantic roles & 50–950 ramp

primary
#B166EF
secondary
#D6EEC2
accent
#DD0869
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166EF

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

Preview Lab → · Contrast checker → · Palette generator →

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