#B166AF#B166AF

#B166AF is a mid, vivid purple. Relative luminance 0.219; OKLCH L 62.0% C 0.135 H 328.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B166AF
RGBrgb(177, 102, 175)
HSLhsl(302, 32%, 55%)
HSVhsv(302, 42%, 69%)
CMYKcmyk(0%, 42.4%, 1.1%, 30.6%)
CIE-LABlab(53.97, 41.17, -26.29)
CIE-LCHlch(53.97, 48.85, 327.43°)
OKLaboklab(61.99% 0.1148 -0.0717)
OKLCHoklch(61.99% 0.135 328)
XYZxyz(30.6202, 21.9465, 43.1723)
Luminance0.2195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166AF #66B168
analogous
#8E66B1 #B166AF #B1668A
triadic
#B166AF #AFB166 #66AFB1
tetradic
#B166AF #B18E66 #66B168 #668AB1
square
#B166AF #B18E66 #66B168 #668AB1
split-complementary
#B166AF #8AB166 #66B18E
monochromatic
#683566 #904A8E #B166AF #C68FC4 #DAB7D9

Accessibility & contrast

On white

3.90
#B166AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#B166AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166AF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166AF#FFFFFF#000000##000000
##B166AF1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#617BB2
Deuteranopia (green-blind)
#7585AD
Tritanopia (blue-blind)
#B66D82
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b166af;
/* rgb */ color: rgb(177, 102, 175);
/* oklch */ color: oklch(62.0% 0.135 328.0);
Tailwind
colors: {
  custom: {
    50: '#ca94c7',
    500: '#b166af',
    950: '#000000',
  },
}
SCSS
$custom: #b166af;
$custom-light: #ca94c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b166af",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 175
  },
  "hsl": {
    "h": 301.6,
    "s": 32.468,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61992,
    "c": 0.13534,
    "h": 328
  },
  "luminance": 0.21945
}

Semantic roles & 50–950 ramp

primary
#B166AF
secondary
#AAC9AA
accent
#C9625F
background
#FCF9FC
surface
#F9F1F8
border
#D2CBD1
text
#130D13
muted
#827E82

Preview Lab

Preview with #B166AF

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

Preview Lab → · Contrast checker → · Palette generator →

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