#B31B74#B31B74

#B31B74 is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.4% C 0.198 H 351.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#B31B74
RGBrgb(179, 27, 116)
HSLhsl(325, 74%, 40%)
HSVhsv(325, 85%, 70%)
CMYKcmyk(0%, 84.9%, 35.2%, 29.8%)
CIE-LABlab(40.62, 63.56, -11.32)
CIE-LCHlch(40.62, 64.56, 349.90°)
OKLaboklab(51.44% 0.1954 -0.0293)
OKLCHoklch(51.44% 0.198 351.5)
XYZxyz(22.1361, 11.6313, 17.5990)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B74 #1BB35A
analogous
#A61BB3 #B31B74 #B31B28
triadic
#B31B74 #74B31B #1B74B3
tetradic
#B31B74 #B3A61B #1BB35A #1B28B3
square
#B31B74 #B3A61B #1BB35A #1B28B3
split-complementary
#B31B74 #28B31B #1BB3A6
monochromatic
#490B2F #7E1352 #B31B74 #DF2C95 #E761B0

Accessibility & contrast

On white

6.31
#B31B74 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#B31B74 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B74
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B74#FFFFFF#000000##FFFFFF
##B31B741.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4F76
Deuteranopia (green-blind)
#676971
Tritanopia (blue-blind)
#C10247
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #b31b74;
/* rgb */ color: rgb(179, 27, 116);
/* oklch */ color: oklch(51.4% 0.198 351.5);
Tailwind
colors: {
  custom: {
    50: '#cf6c9c',
    500: '#b31b74',
    950: '#000000',
  },
}
SCSS
$custom: #b31b74;
$custom-light: #cf6c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b74",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 324.868,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51437,
    "c": 0.19756,
    "h": 351.5
  },
  "luminance": 0.11629
}

Semantic roles & 50–950 ramp

primary
#B31B74
secondary
#5ECC8C
accent
#F08437
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15080E
muted
#837B7E

Preview Lab

Preview with #B31B74

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

Preview Lab → · Contrast checker → · Palette generator →

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