#B31A95#B31A95

#B31A95 is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.9% C 0.217 H 338.3°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#B31A95
RGBrgb(179, 26, 149)
HSLhsl(312, 75%, 40%)
HSVhsv(312, 85%, 70%)
CMYKcmyk(0%, 85.5%, 16.8%, 29.8%)
CIE-LABlab(41.99, 67.75, -29.51)
CIE-LCHlch(41.99, 73.89, 336.46°)
OKLaboklab(52.89% 0.2013 -0.0802)
OKLCHoklch(52.89% 0.217 338.3)
XYZxyz(24.3853, 12.4949, 29.5555)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A95 #1AB338
analogous
#851AB3 #B31A95 #B31A48
triadic
#B31A95 #95B31A #1A95B3
tetradic
#B31A95 #B3851A #1AB338 #1A48B3
square
#B31A95 #B3851A #1AB338 #1A48B3
split-complementary
#B31A95 #48B31A #1AB385
monochromatic
#480A3C #7E1269 #B31A95 #E02ABC #E860CD

Accessibility & contrast

On white

6.00
#B31A95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#B31A95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A95
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A95#FFFFFF#000000##FFFFFF
##B31A951.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245498
Deuteranopia (green-blind)
#5C6B92
Tritanopia (blue-blind)
#BD2559
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31a95;
/* rgb */ color: rgb(179, 26, 149);
/* oklch */ color: oklch(52.9% 0.217 338.3);
Tailwind
colors: {
  custom: {
    50: '#ce6db4',
    500: '#b31a95',
    950: '#000000',
  },
}
SCSS
$custom: #b31a95;
$custom-light: #ce6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a95",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 311.765,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52891,
    "c": 0.21671,
    "h": 338.3
  },
  "luminance": 0.12492
}

Semantic roles & 50–950 ramp

primary
#B31A95
secondary
#5DCC73
accent
#F15B37
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31A95

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

Preview Lab → · Contrast checker → · Palette generator →

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