#B166DC#B166DC

#B166DC is a light, vivid violet. Relative luminance 0.240; OKLCH L 64.3% C 0.182 H 311.7°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B166DC
RGBrgb(177, 102, 220)
HSLhsl(278, 63%, 63%)
HSVhsv(278, 54%, 86%)
CMYKcmyk(19.5%, 53.6%, 0%, 13.7%)
CIE-LABlab(56.11, 50.29, -48.66)
CIE-LCHlch(56.11, 69.98, 315.94°)
OKLaboklab(64.27% 0.1212 -0.1362)
OKLCHoklch(64.27% 0.182 311.7)
XYZxyz(35.7988, 24.0179, 70.4464)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166DC #91DC66
analogous
#7666DC #B166DC #DC66CC
triadic
#B166DC #DCB166 #66DCB1
tetradic
#B166DC #DC7666 #91DC66 #66CCDC
square
#B166DC #DC7666 #91DC66 #66CCDC
split-complementary
#B166DC #CCDC66 #66DC76
monochromatic
#7525A2 #9834D1 #B166DC #CA98E7 #E4CAF3

Accessibility & contrast

On white

3.62
#B166DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#B166DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166DC
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166DC#FFFFFF#000000##000000
##B166DC1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4583E0
Deuteranopia (green-blind)
#5E88D9
Tritanopia (blue-blind)
#AC7A97
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b166dc;
/* rgb */ color: rgb(177, 102, 220);
/* oklch */ color: oklch(64.3% 0.182 311.7);
Tailwind
colors: {
  custom: {
    50: '#cb94e7',
    500: '#b166dc',
    950: '#000000',
  },
}
SCSS
$custom: #b166dc;
$custom-light: #cb94e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b166dc",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 278.136,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.64274,
    "c": 0.18235,
    "h": 311.7
  },
  "luminance": 0.24017
}

Semantic roles & 50–950 ramp

primary
#B166DC
secondary
#C9E4BA
accent
#CB1B5B
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166DC

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

Preview Lab → · Contrast checker → · Palette generator →

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