#B951AB#B951AB

#B951AB is a mid, vivid purple. Relative luminance 0.191; OKLCH L 59.8% C 0.172 H 333.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B951AB
RGBrgb(185, 81, 171)
HSLhsl(308, 43%, 52%)
HSVhsv(308, 56%, 73%)
CMYKcmyk(0%, 56.2%, 7.6%, 27.5%)
CIE-LABlab(50.85, 53.41, -28.71)
CIE-LCHlch(50.85, 60.64, 331.74°)
OKLaboklab(59.85% 0.1534 -0.0783)
OKLCHoklch(59.85% 0.172 333)
XYZxyz(30.3007, 19.1415, 40.6189)
Luminance0.1914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B951AB #51B95F
analogous
#9351B9 #B951AB #B95177
triadic
#B951AB #ABB951 #51ABB9
tetradic
#B951AB #B99351 #51B95F #5177B9
square
#B951AB #B99351 #51B95F #5177B9
split-complementary
#B951AB #77B951 #51B993
monochromatic
#66295E #923B86 #B951AB #CB7DC0 #DCA8D5

Accessibility & contrast

On white

4.35
#B951AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#B951AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B951AB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B951AB#FFFFFF#000000##000000
##B951AB1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E70AE
Deuteranopia (green-blind)
#6E7FA8
Tritanopia (blue-blind)
#C05877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b951ab;
/* rgb */ color: rgb(185, 81, 171);
/* oklch */ color: oklch(59.8% 0.172 333.0);
Tailwind
colors: {
  custom: {
    50: '#d187c4',
    500: '#b951ab',
    950: '#000000',
  },
}
SCSS
$custom: #b951ab;
$custom-light: #d187c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b951ab",
  "rgb": {
    "r": 185,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 308.077,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59847,
    "c": 0.17219,
    "h": 333
  },
  "luminance": 0.19139
}

Semantic roles & 50–950 ramp

primary
#B951AB
secondary
#9CCAA2
accent
#D26655
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #B951AB

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

Preview Lab → · Contrast checker → · Palette generator →

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