#B166B3#B166B3

#B166B3 is a light, vivid purple. Relative luminance 0.221; OKLCH L 62.2% C 0.139 H 326.2°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B166B3
RGBrgb(177, 102, 179)
HSLhsl(298, 34%, 55%)
HSVhsv(298, 43%, 70%)
CMYKcmyk(1.1%, 43%, 0%, 29.8%)
CIE-LABlab(54.14, 41.92, -28.35)
CIE-LCHlch(54.14, 50.60, 325.93°)
OKLaboklab(62.17% 0.1156 -0.0775)
OKLCHoklch(62.17% 0.139 326.2)
XYZxyz(31.0189, 22.1060, 45.2721)
Luminance0.2210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166B3 #68B366
analogous
#8B66B3 #B166B3 #B3668E
triadic
#B166B3 #B3B166 #66B3B1
tetradic
#B166B3 #B38B66 #68B366 #668EB3
square
#B166B3 #B38B66 #68B366 #668EB3
split-complementary
#B166B3 #8EB366 #66B38B
monochromatic
#69356A #914993 #B166B3 #C68FC7 #DBB8DC

Accessibility & contrast

On white

3.87
#B166B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#B166B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166B3
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166B3#FFFFFF#000000##000000
##B166B31.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F7BB6
Deuteranopia (green-blind)
#7485B1
Tritanopia (blue-blind)
#B56E84
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b166b3;
/* rgb */ color: rgb(177, 102, 179);
/* oklch */ color: oklch(62.2% 0.139 326.2);
Tailwind
colors: {
  custom: {
    50: '#ca94ca',
    500: '#b166b3',
    950: '#000000',
  },
}
SCSS
$custom: #b166b3;
$custom-light: #ca94ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b166b3",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 179
  },
  "hsl": {
    "h": 298.442,
    "s": 33.624,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62174,
    "c": 0.13923,
    "h": 326.2
  },
  "luminance": 0.22105
}

Semantic roles & 50–950 ramp

primary
#B166B3
secondary
#ABCBAA
accent
#CA5E61
background
#FCF9FC
surface
#F9F1F8
border
#D2CBD1
text
#130D13
muted
#827E82

Preview Lab

Preview with #B166B3

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

Preview Lab → · Contrast checker → · Palette generator →

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