#B951B2#B951B2

#B951B2 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.2% C 0.178 H 330.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B951B2
RGBrgb(185, 81, 178)
HSLhsl(304, 43%, 52%)
HSVhsv(304, 56%, 73%)
CMYKcmyk(0%, 56.2%, 3.8%, 27.5%)
CIE-LABlab(51.17, 54.60, -32.31)
CIE-LCHlch(51.17, 63.44, 329.39°)
OKLaboklab(60.18% 0.1544 -0.0885)
OKLCHoklch(60.18% 0.178 330.2)
XYZxyz(30.9857, 19.4155, 44.2264)
Luminance0.1941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B951B2 #51B958
analogous
#8C51B9 #B951B2 #B9517E
triadic
#B951B2 #B2B951 #51B2B9
tetradic
#B951B2 #B98C51 #51B958 #517EB9
square
#B951B2 #B98C51 #51B958 #517EB9
split-complementary
#B951B2 #7EB951 #51B98C
monochromatic
#662962 #923B8C #B951B2 #CB7DC5 #DCA8D9

Accessibility & contrast

On white

4.30
#B951B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B951B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B951B2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B951B2#FFFFFF#000000##000000
##B951B21.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A71B5
Deuteranopia (green-blind)
#6B7FAF
Tritanopia (blue-blind)
#BF5B7A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b951b2;
/* rgb */ color: rgb(185, 81, 178);
/* oklch */ color: oklch(60.2% 0.178 330.2);
Tailwind
colors: {
  custom: {
    50: '#d187c9',
    500: '#b951b2',
    950: '#000000',
  },
}
SCSS
$custom: #b951b2;
$custom-light: #d187c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b951b2",
  "rgb": {
    "r": 185,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 304.038,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60184,
    "c": 0.17801,
    "h": 330.2
  },
  "luminance": 0.19413
}

Semantic roles & 50–950 ramp

primary
#B951B2
secondary
#9CCA9F
accent
#D25E55
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #B951B2

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

Preview Lab → · Contrast checker → · Palette generator →

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