#B5317A#B5317A

#B5317A is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.6% C 0.181 H 351.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B5317A
RGBrgb(181, 49, 122)
HSLhsl(327, 57%, 45%)
HSVhsv(327, 73%, 71%)
CMYKcmyk(0%, 72.9%, 32.6%, 29%)
CIE-LABlab(43.40, 58.53, -10.80)
CIE-LCHlch(43.40, 59.52, 349.54°)
OKLaboklab(53.6% 0.179 -0.028)
OKLCHoklch(53.6% 0.181 351.1)
XYZxyz(23.6685, 13.4283, 19.7541)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5317A #31B56C
analogous
#AE31B5 #B5317A #B53138
triadic
#B5317A #7AB531 #317AB5
tetradic
#B5317A #B5AE31 #31B56C #3138B5
square
#B5317A #B5AE31 #31B56C #3138B5
split-complementary
#B5317A #38B531 #31B5AE
monochromatic
#551739 #85245A #B5317A #D05398 #DD83B5

Accessibility & contrast

On white

5.70
#B5317A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B5317A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5317A
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5317A#FFFFFF#000000##FFFFFF
##B5317A1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47577C
Deuteranopia (green-blind)
#6D6F77
Tritanopia (blue-blind)
#C32851
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b5317a;
/* rgb */ color: rgb(181, 49, 122);
/* oklch */ color: oklch(53.6% 0.181 351.1);
Tailwind
colors: {
  custom: {
    50: '#d075a0',
    500: '#b5317a',
    950: '#000000',
  },
}
SCSS
$custom: #b5317a;
$custom-light: #d075a0;
$custom-dark: #000000;
JSON
{
  "hex": "#b5317a",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 326.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53601,
    "c": 0.18114,
    "h": 351.1
  },
  "luminance": 0.13426
}

Semantic roles & 50–950 ramp

primary
#B5317A
secondary
#7BC79D
accent
#E18C47
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #B5317A

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

Preview Lab → · Contrast checker → · Palette generator →

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