#B31F8A#B31F8A

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

Color values

HEX#B31F8A
RGBrgb(179, 31, 138)
HSLhsl(317, 70%, 41%)
HSVhsv(317, 83%, 70%)
CMYKcmyk(0%, 82.7%, 22.9%, 29.8%)
CIE-LABlab(41.85, 65.23, -23.04)
CIE-LCHlch(41.85, 69.18, 340.55°)
OKLaboklab(52.62% 0.1968 -0.0619)
OKLCHoklch(52.62% 0.206 342.6)
XYZxyz(23.6688, 12.4012, 25.1870)
Luminance0.1240 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F8A #1FB348
analogous
#921FB3 #B31F8A #B31F40
triadic
#B31F8A #8AB31F #1F8AB3
tetradic
#B31F8A #B3921F #1FB348 #1F40B3
square
#B31F8A #B3921F #1FB348 #1F40B3
split-complementary
#B31F8A #40B31F #1FB392
monochromatic
#4B0D3A #7F1662 #B31F8A #DC33AD #E568C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31F8A#FFFFFF#000000##FFFFFF
##B31F8A1.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)
#31548D
Deuteranopia (green-blind)
#616B87
Tritanopia (blue-blind)
#BF2154
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31f8a;
/* rgb */ color: rgb(179, 31, 138);
/* oklch */ color: oklch(52.6% 0.206 342.6);
Tailwind
colors: {
  custom: {
    50: '#ce6eac',
    500: '#b31f8a',
    950: '#000000',
  },
}
SCSS
$custom: #b31f8a;
$custom-light: #ce6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f8a",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 316.622,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52618,
    "c": 0.2063,
    "h": 342.6
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#B31F8A
secondary
#64CA80
accent
#ED6C3B
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B31F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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