#B166CA#B166CA

#B166CA is a light, vivid purple. Relative luminance 0.231; OKLCH L 63.3% C 0.163 H 317.2°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B166CA
RGBrgb(177, 102, 202)
HSLhsl(285, 49%, 60%)
HSVhsv(285, 50%, 79%)
CMYKcmyk(12.4%, 49.5%, 0%, 20.8%)
CIE-LABlab(55.19, 46.48, -39.90)
CIE-LCHlch(55.19, 61.26, 319.35°)
OKLaboklab(63.3% 0.1195 -0.1108)
OKLCHoklch(63.3% 0.163 317.2)
XYZxyz(33.5420, 23.1152, 58.5605)
Luminance0.2311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166CA #7FCA66
analogous
#7F66CA #B166CA #CA66B1
triadic
#B166CA #CAB166 #66CAB1
tetradic
#B166CA #CA7F66 #7FCA66 #66B1CA
square
#B166CA #CA7F66 #7FCA66 #66B1CA
split-complementary
#B166CA #B1CA66 #66CA7F
monochromatic
#712F87 #973EB4 #B166CA #C893DA #DFC1E9

Accessibility & contrast

On white

3.73
#B166CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#B166CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166CA
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166CA#FFFFFF#000000##000000
##B166CA1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#537FCD
Deuteranopia (green-blind)
#6987C7
Tritanopia (blue-blind)
#B0758F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b166ca;
/* rgb */ color: rgb(177, 102, 202);
/* oklch */ color: oklch(63.3% 0.163 317.2);
Tailwind
colors: {
  custom: {
    50: '#ca94da',
    500: '#b166ca',
    950: '#000000',
  },
}
SCSS
$custom: #b166ca;
$custom-light: #ca94da;
$custom-dark: #000000;
JSON
{
  "hex": "#b166ca",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 202
  },
  "hsl": {
    "h": 285,
    "s": 48.544,
    "l": 59.608
  },
  "oklch": {
    "l": 0.633,
    "c": 0.16291,
    "h": 317.2
  },
  "luminance": 0.23114
}

Semantic roles & 50–950 ramp

primary
#B166CA
secondary
#BCD9B2
accent
#D85072
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #B166CA

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

Preview Lab → · Contrast checker → · Palette generator →

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