#B31E7B#B31E7B

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

Color values

HEX#B31E7B
RGBrgb(179, 30, 123)
HSLhsl(323, 71%, 41%)
HSVhsv(323, 83%, 70%)
CMYKcmyk(0%, 83.2%, 31.3%, 29.8%)
CIE-LABlab(41.13, 63.66, -14.90)
CIE-LCHlch(41.13, 65.38, 346.82°)
OKLaboklab(51.89% 0.1949 -0.0392)
OKLCHoklch(51.89% 0.199 348.6)
XYZxyz(22.6311, 11.9450, 19.8489)
Luminance0.1194 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31E7B #1EB356
analogous
#A01EB3 #B31E7B #B31E31
triadic
#B31E7B #7BB31E #1E7BB3
tetradic
#B31E7B #B3A01E #1EB356 #1E31B3
square
#B31E7B #B3A01E #1EB356 #1E31B3
split-complementary
#B31E7B #31B31E #1EB3A0
monochromatic
#4A0C33 #7F1557 #B31E7B #DD329C #E566B6

Accessibility & contrast

On white

6.20
#B31E7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31E7B
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31E7B#FFFFFF#000000##FFFFFF
##B31E7B1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A517D
Deuteranopia (green-blind)
#666A78
Tritanopia (blue-blind)
#C0124B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b31e7b;
/* rgb */ color: rgb(179, 30, 123);
/* oklch */ color: oklch(51.9% 0.199 348.6);
Tailwind
colors: {
  custom: {
    50: '#cf6da1',
    500: '#b31e7b',
    950: '#000000',
  },
}
SCSS
$custom: #b31e7b;
$custom-light: #cf6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31e7b",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 322.55,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51891,
    "c": 0.19876,
    "h": 348.6
  },
  "luminance": 0.11942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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