#B31E7D#B31E7D

#B31E7D is a mid, vivid pink. Relative luminance 0.120; OKLCH L 52.0% C 0.200 H 347.8°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#B31E7D
RGBrgb(179, 30, 125)
HSLhsl(322, 71%, 41%)
HSVhsv(322, 83%, 70%)
CMYKcmyk(0%, 83.2%, 30.2%, 29.8%)
CIE-LABlab(41.21, 63.89, -16.02)
CIE-LCHlch(41.21, 65.87, 345.92°)
OKLaboklab(51.98% 0.1953 -0.0422)
OKLCHoklch(51.98% 0.2 347.8)
XYZxyz(22.7576, 11.9956, 20.5150)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31E7D #1EB354
analogous
#9E1EB3 #B31E7D #B31E32
triadic
#B31E7D #7DB31E #1E7DB3
tetradic
#B31E7D #B39E1E #1EB354 #1E32B3
square
#B31E7D #B39E1E #1EB354 #1E32B3
split-complementary
#B31E7D #32B31E #1EB39E
monochromatic
#4A0C34 #7F1558 #B31E7D #DD329F #E566B7

Accessibility & contrast

On white

6.18
#B31E7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#B31E7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31E7D
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31E7D#FFFFFF#000000##FFFFFF
##B31E7D1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517F
Deuteranopia (green-blind)
#656A7A
Tritanopia (blue-blind)
#C0144D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b31e7d;
/* rgb */ color: rgb(179, 30, 125);
/* oklch */ color: oklch(52.0% 0.200 347.8);
Tailwind
colors: {
  custom: {
    50: '#cf6da2',
    500: '#b31e7d',
    950: '#000000',
  },
}
SCSS
$custom: #b31e7d;
$custom-light: #cf6da2;
$custom-dark: #000000;
JSON
{
  "hex": "#b31e7d",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 321.745,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51976,
    "c": 0.1998,
    "h": 347.8
  },
  "luminance": 0.11993
}

Semantic roles & 50–950 ramp

primary
#B31E7D
secondary
#62CB88
accent
#EE7B3A
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#15080F
muted
#837B7F

Preview Lab

Preview with #B31E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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