#B31E7A#B31E7A

#B31E7A is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.8% C 0.198 H 349.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#B31E7A
RGBrgb(179, 30, 122)
HSLhsl(323, 71%, 41%)
HSVhsv(323, 83%, 70%)
CMYKcmyk(0%, 83.2%, 31.8%, 29.8%)
CIE-LABlab(41.09, 63.55, -14.35)
CIE-LCHlch(41.09, 65.14, 347.28°)
OKLaboklab(51.85% 0.1946 -0.0376)
OKLCHoklch(51.85% 0.198 349.1)
XYZxyz(22.5688, 11.9201, 19.5209)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31E7A #1EB357
analogous
#A11EB3 #B31E7A #B31E2F
triadic
#B31E7A #7AB31E #1E7AB3
tetradic
#B31E7A #B3A11E #1EB357 #1E2FB3
square
#B31E7A #B3A11E #1EB357 #1E2FB3
split-complementary
#B31E7A #2FB31E #1EB3A1
monochromatic
#4A0C33 #7F1556 #B31E7A #DD329B #E566B5

Accessibility & contrast

On white

6.21
#B31E7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#B31E7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31E7A
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31E7A#FFFFFF#000000##FFFFFF
##B31E7A1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A507C
Deuteranopia (green-blind)
#666A77
Tritanopia (blue-blind)
#C0114B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b31e7a;
/* rgb */ color: rgb(179, 30, 122);
/* oklch */ color: oklch(51.8% 0.198 349.1);
Tailwind
colors: {
  custom: {
    50: '#cf6da0',
    500: '#b31e7a',
    950: '#000000',
  },
}
SCSS
$custom: #b31e7a;
$custom-light: #cf6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#b31e7a",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 322.953,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51849,
    "c": 0.19824,
    "h": 349.1
  },
  "luminance": 0.11917
}

Semantic roles & 50–950 ramp

primary
#B31E7A
secondary
#62CB8A
accent
#EE7F3A
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15080E
muted
#837B7E

Preview Lab

Preview with #B31E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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