#B31D9A#B31D9A

#B31D9A is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.3% C 0.218 H 336.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#B31D9A
RGBrgb(179, 29, 154)
HSLhsl(310, 72%, 41%)
HSVhsv(310, 84%, 70%)
CMYKcmyk(0%, 83.8%, 14%, 29.8%)
CIE-LABlab(42.46, 67.80, -31.80)
CIE-LCHlch(42.46, 74.89, 334.87°)
OKLaboklab(53.31% 0.1998 -0.0868)
OKLCHoklch(53.31% 0.218 336.5)
XYZxyz(24.8630, 12.7979, 31.7264)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D9A #1DB336
analogous
#811DB3 #B31D9A #B31D4F
triadic
#B31D9A #9AB31D #1D9AB3
tetradic
#B31D9A #B3811D #1DB336 #1D4FB3
square
#B31D9A #B3811D #1DB336 #1D4FB3
split-complementary
#B31D9A #4FB31D #1DB381
monochromatic
#4A0C3F #7E146D #B31D9A #DD30C0 #E664D0

Accessibility & contrast

On white

5.90
#B31D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B31D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D9A
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D9A#FFFFFF#000000##FFFFFF
##B31D9A1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21569D
Deuteranopia (green-blind)
#5A6C97
Tritanopia (blue-blind)
#BD2B5D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31d9a;
/* rgb */ color: rgb(179, 29, 154);
/* oklch */ color: oklch(53.3% 0.218 336.5);
Tailwind
colors: {
  custom: {
    50: '#ce6eb8',
    500: '#b31d9a',
    950: '#000000',
  },
}
SCSS
$custom: #b31d9a;
$custom-light: #ce6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d9a",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 310,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53305,
    "c": 0.21781,
    "h": 336.5
  },
  "luminance": 0.12796
}

Semantic roles & 50–950 ramp

primary
#B31D9A
secondary
#61CB73
accent
#EF5739
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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