#B951AF#B951AF

#B951AF is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.0% C 0.175 H 331.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B951AF
RGBrgb(185, 81, 175)
HSLhsl(306, 43%, 52%)
HSVhsv(306, 56%, 73%)
CMYKcmyk(0%, 56.2%, 5.4%, 27.5%)
CIE-LABlab(51.03, 54.08, -30.77)
CIE-LCHlch(51.03, 62.22, 330.36°)
OKLaboklab(60.04% 0.154 -0.0841)
OKLCHoklch(60.04% 0.176 331.4)
XYZxyz(30.6877, 19.2964, 42.6574)
Luminance0.1929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B951AF #51B95B
analogous
#8F51B9 #B951AF #B9517B
triadic
#B951AF #AFB951 #51AFB9
tetradic
#B951AF #B98F51 #51B95B #517BB9
square
#B951AF #B98F51 #51B95B #517BB9
split-complementary
#B951AF #7BB951 #51B98F
monochromatic
#662961 #923B8A #B951AF #CB7DC3 #DCA8D7

Accessibility & contrast

On white

4.32
#B951AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#B951AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B951AF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B951AF#FFFFFF#000000##000000
##B951AF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C70B2
Deuteranopia (green-blind)
#6C7FAC
Tritanopia (blue-blind)
#C05A78
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b951af;
/* rgb */ color: rgb(185, 81, 175);
/* oklch */ color: oklch(60.0% 0.175 331.4);
Tailwind
colors: {
  custom: {
    50: '#d187c7',
    500: '#b951af',
    950: '#000000',
  },
}
SCSS
$custom: #b951af;
$custom-light: #d187c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b951af",
  "rgb": {
    "r": 185,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 305.769,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60038,
    "c": 0.1755,
    "h": 331.4
  },
  "luminance": 0.19294
}

Semantic roles & 50–950 ramp

primary
#B951AF
secondary
#9CCAA1
accent
#D26155
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #B951AF

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

Preview Lab → · Contrast checker → · Palette generator →

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