#B5317B#B5317B

#B5317B is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.6% C 0.182 H 350.6°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#B5317B
RGBrgb(181, 49, 123)
HSLhsl(326, 57%, 45%)
HSVhsv(326, 73%, 71%)
CMYKcmyk(0%, 72.9%, 32%, 29%)
CIE-LABlab(43.44, 58.64, -11.36)
CIE-LCHlch(43.44, 59.73, 349.03°)
OKLaboklab(53.64% 0.1792 -0.0295)
OKLCHoklch(53.64% 0.182 350.6)
XYZxyz(23.7308, 13.4532, 20.0821)
Luminance0.1345 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5317B #31B56B
analogous
#AD31B5 #B5317B #B53139
triadic
#B5317B #7BB531 #317BB5
tetradic
#B5317B #B5AD31 #31B56B #3139B5
square
#B5317B #B5AD31 #31B56B #3139B5
split-complementary
#B5317B #39B531 #31B5AD
monochromatic
#55173A #85245A #B5317B #D05399 #DD83B6

Accessibility & contrast

On white

5.69
#B5317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5317B
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5317B#FFFFFF#000000##FFFFFF
##B5317B1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46587D
Deuteranopia (green-blind)
#6C6F78
Tritanopia (blue-blind)
#C22852
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b5317b;
/* rgb */ color: rgb(181, 49, 123);
/* oklch */ color: oklch(53.6% 0.182 350.6);
Tailwind
colors: {
  custom: {
    50: '#d075a1',
    500: '#b5317b',
    950: '#000000',
  },
}
SCSS
$custom: #b5317b;
$custom-light: #d075a1;
$custom-dark: #000000;
JSON
{
  "hex": "#b5317b",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 326.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5364,
    "c": 0.18164,
    "h": 350.6
  },
  "luminance": 0.1345
}

Semantic roles & 50–950 ramp

primary
#B5317B
secondary
#7BC79C
accent
#E18B47
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #B5317B

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

Preview Lab → · Contrast checker → · Palette generator →

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