#B31E7C#B31E7C

#B31E7C is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.9% C 0.199 H 348.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#B31E7C
RGBrgb(179, 30, 124)
HSLhsl(322, 71%, 41%)
HSVhsv(322, 83%, 70%)
CMYKcmyk(0%, 83.2%, 30.7%, 29.8%)
CIE-LABlab(41.17, 63.77, -15.46)
CIE-LCHlch(41.17, 65.62, 346.37°)
OKLaboklab(51.93% 0.1951 -0.0407)
OKLCHoklch(51.93% 0.199 348.2)
XYZxyz(22.6940, 11.9702, 20.1803)
Luminance0.1197 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31E7C #1EB355
analogous
#9F1EB3 #B31E7C #B31E31
triadic
#B31E7C #7CB31E #1E7CB3
tetradic
#B31E7C #B39F1E #1EB355 #1E31B3
square
#B31E7C #B39F1E #1EB355 #1E31B3
split-complementary
#B31E7C #31B31E #1EB39F
monochromatic
#4A0C33 #7F1558 #B31E7C #DD329D #E566B6

Accessibility & contrast

On white

6.19
#B31E7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#B31E7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31E7C
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31E7C#FFFFFF#000000##FFFFFF
##B31E7C1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517E
Deuteranopia (green-blind)
#656A79
Tritanopia (blue-blind)
#C0134C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b31e7c;
/* rgb */ color: rgb(179, 30, 124);
/* oklch */ color: oklch(51.9% 0.199 348.2);
Tailwind
colors: {
  custom: {
    50: '#cf6da2',
    500: '#b31e7c',
    950: '#000000',
  },
}
SCSS
$custom: #b31e7c;
$custom-light: #cf6da2;
$custom-dark: #000000;
JSON
{
  "hex": "#b31e7c",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 322.148,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51933,
    "c": 0.19927,
    "h": 348.2
  },
  "luminance": 0.11967
}

Semantic roles & 50–950 ramp

primary
#B31E7C
secondary
#62CB89
accent
#EE7C3A
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15080F
muted
#837B7E

Preview Lab

Preview with #B31E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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