#B5317F#B5317F

#B5317F is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.8% C 0.184 H 348.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B5317F
RGBrgb(181, 49, 127)
HSLhsl(325, 57%, 45%)
HSVhsv(325, 73%, 71%)
CMYKcmyk(0%, 72.9%, 29.8%, 29%)
CIE-LABlab(43.59, 59.12, -13.59)
CIE-LCHlch(43.59, 60.67, 347.05°)
OKLaboklab(53.8% 0.1802 -0.0356)
OKLCHoklch(53.8% 0.184 348.8)
XYZxyz(23.9863, 13.5554, 21.4278)
Luminance0.1355 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5317F #31B567
analogous
#A931B5 #B5317F #B5313D
triadic
#B5317F #7FB531 #317FB5
tetradic
#B5317F #B5A931 #31B567 #313DB5
square
#B5317F #B5A931 #31B567 #313DB5
split-complementary
#B5317F #3DB531 #31B5A9
monochromatic
#55173B #85245D #B5317F #D0539D #DD83B8

Accessibility & contrast

On white

5.66
#B5317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B5317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5317F
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5317F#FFFFFF#000000##FFFFFF
##B5317F1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455881
Deuteranopia (green-blind)
#6B6F7C
Tritanopia (blue-blind)
#C22B54
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b5317f;
/* rgb */ color: rgb(181, 49, 127);
/* oklch */ color: oklch(53.8% 0.184 348.8);
Tailwind
colors: {
  custom: {
    50: '#cf75a4',
    500: '#b5317f',
    950: '#000000',
  },
}
SCSS
$custom: #b5317f;
$custom-light: #cf75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#b5317f",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 324.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53799,
    "c": 0.18372,
    "h": 348.8
  },
  "luminance": 0.13553
}

Semantic roles & 50–950 ramp

primary
#B5317F
secondary
#7BC79A
accent
#E18647
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #B5317F

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

Preview Lab → · Contrast checker → · Palette generator →

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