#B5318A#B5318A

#B5318A is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.3% C 0.190 H 344.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B5318A
RGBrgb(181, 49, 138)
HSLhsl(320, 57%, 45%)
HSVhsv(320, 73%, 71%)
CMYKcmyk(0%, 72.9%, 23.8%, 29%)
CIE-LABlab(44.03, 60.51, -19.64)
CIE-LCHlch(44.03, 63.62, 342.02°)
OKLaboklab(54.26% 0.1826 -0.0524)
OKLCHoklch(54.26% 0.19 344)
XYZxyz(24.7428, 13.8579, 25.4116)
Luminance0.1386 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5318A #31B55C
analogous
#9E31B5 #B5318A #B53148
triadic
#B5318A #8AB531 #318AB5
tetradic
#B5318A #B59E31 #31B55C #3148B5
square
#B5318A #B59E31 #31B55C #3148B5
split-complementary
#B5318A #48B531 #31B59E
monochromatic
#551741 #852465 #B5318A #D053A7 #DD83C0

Accessibility & contrast

On white

5.57
#B5318A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B5318A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5318A
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5318A#FFFFFF#000000##FFFFFF
##B5318A1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405A8C
Deuteranopia (green-blind)
#687087
Tritanopia (blue-blind)
#C13059
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b5318a;
/* rgb */ color: rgb(181, 49, 138);
/* oklch */ color: oklch(54.3% 0.190 344.0);
Tailwind
colors: {
  custom: {
    50: '#cf75ac',
    500: '#b5318a',
    950: '#000000',
  },
}
SCSS
$custom: #b5318a;
$custom-light: #cf75ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b5318a",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 319.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54264,
    "c": 0.18999,
    "h": 344
  },
  "luminance": 0.13855
}

Semantic roles & 50–950 ramp

primary
#B5318A
secondary
#7BC794
accent
#E17947
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5318A

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

Preview Lab → · Contrast checker → · Palette generator →

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