#B31A94#B31A94

#B31A94 is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.8% C 0.216 H 338.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#B31A94
RGBrgb(179, 26, 148)
HSLhsl(312, 75%, 40%)
HSVhsv(312, 85%, 70%)
CMYKcmyk(0%, 85.5%, 17.3%, 29.8%)
CIE-LABlab(41.94, 67.61, -28.98)
CIE-LCHlch(41.94, 73.56, 336.80°)
OKLaboklab(52.84% 0.2012 -0.0787)
OKLCHoklch(52.84% 0.216 338.6)
XYZxyz(24.3058, 12.4631, 29.1368)
Luminance0.1246 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A94 #1AB339
analogous
#861AB3 #B31A94 #B31A47
triadic
#B31A94 #94B31A #1A94B3
tetradic
#B31A94 #B3861A #1AB339 #1A47B3
square
#B31A94 #B3861A #1AB339 #1A47B3
split-complementary
#B31A94 #47B31A #1AB386
monochromatic
#480A3C #7E1268 #B31A94 #E02ABB #E860CC

Accessibility & contrast

On white

6.01
#B31A94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#B31A94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A94
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A94#FFFFFF#000000##FFFFFF
##B31A941.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255497
Deuteranopia (green-blind)
#5C6B91
Tritanopia (blue-blind)
#BE2459
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31a94;
/* rgb */ color: rgb(179, 26, 148);
/* oklch */ color: oklch(52.8% 0.216 338.6);
Tailwind
colors: {
  custom: {
    50: '#ce6db4',
    500: '#b31a94',
    950: '#000000',
  },
}
SCSS
$custom: #b31a94;
$custom-light: #ce6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a94",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 312.157,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.5284,
    "c": 0.21609,
    "h": 338.6
  },
  "luminance": 0.12461
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31A94

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

Preview Lab → · Contrast checker → · Palette generator →

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