#B31B91#B31B91

#B31B91 is a mid, highly saturated pink. Relative luminance 0.124; OKLCH L 52.7% C 0.214 H 339.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#B31B91
RGBrgb(179, 27, 145)
HSLhsl(313, 74%, 40%)
HSVhsv(313, 85%, 70%)
CMYKcmyk(0%, 84.9%, 19%, 29.8%)
CIE-LABlab(41.87, 67.01, -27.28)
CIE-LCHlch(41.87, 72.35, 337.85°)
OKLaboklab(52.74% 0.2004 -0.0739)
OKLCHoklch(52.74% 0.214 339.8)
XYZxyz(24.0939, 12.4144, 27.9099)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B91 #1BB33D
analogous
#891BB3 #B31B91 #B31B45
triadic
#B31B91 #91B31B #1B91B3
tetradic
#B31B91 #B3891B #1BB33D #1B45B3
square
#B31B91 #B3891B #1BB33D #1B45B3
split-complementary
#B31B91 #45B31B #1BB389
monochromatic
#490B3B #7E1366 #B31B91 #DF2CB7 #E761C9

Accessibility & contrast

On white

6.03
#B31B91 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#B31B91 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B91
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B91#FFFFFF#000000##FFFFFF
##B31B911.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295494
Deuteranopia (green-blind)
#5D6B8E
Tritanopia (blue-blind)
#BE2357
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31b91;
/* rgb */ color: rgb(179, 27, 145);
/* oklch */ color: oklch(52.7% 0.214 339.8);
Tailwind
colors: {
  custom: {
    50: '#ce6db1',
    500: '#b31b91',
    950: '#000000',
  },
}
SCSS
$custom: #b31b91;
$custom-light: #ce6db1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b91",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 145
  },
  "hsl": {
    "h": 313.421,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52738,
    "c": 0.21353,
    "h": 339.8
  },
  "luminance": 0.12412
}

Semantic roles & 50–950 ramp

primary
#B31B91
secondary
#5ECC77
accent
#F06137
background
#FDF7FA
surface
#FAEDF5
border
#D3C8CF
text
#140811
muted
#837B80

Preview Lab

Preview with #B31B91

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

Preview Lab → · Contrast checker → · Palette generator →

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