#B5319D#B5319D

#B5319D is a mid, highly saturated pink. Relative luminance 0.145; OKLCH L 55.2% C 0.202 H 336.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B5319D
RGBrgb(181, 49, 157)
HSLhsl(311, 57%, 45%)
HSVhsv(311, 73%, 71%)
CMYKcmyk(0%, 72.9%, 13.3%, 29%)
CIE-LABlab(44.88, 63.15, -29.78)
CIE-LCHlch(44.88, 69.82, 334.75°)
OKLaboklab(55.16% 0.1854 -0.0811)
OKLCHoklch(55.16% 0.202 336.4)
XYZxyz(26.2406, 14.4571, 33.3003)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5319D #31B549
analogous
#8B31B5 #B5319D #B5315B
triadic
#B5319D #9DB531 #319DB5
tetradic
#B5319D #B58B31 #31B549 #315BB5
square
#B5319D #B58B31 #31B549 #315BB5
split-complementary
#B5319D #5BB531 #31B58B
monochromatic
#551749 #852473 #B5319D #D053BA #DD83CD

Accessibility & contrast

On white

5.40
#B5319D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B5319D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5319D
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5319D#FFFFFF#000000##FFFFFF
##B5319D1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335DA0
Deuteranopia (green-blind)
#61719A
Tritanopia (blue-blind)
#BE3A63
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b5319d;
/* rgb */ color: rgb(181, 49, 157);
/* oklch */ color: oklch(55.2% 0.202 336.4);
Tailwind
colors: {
  custom: {
    50: '#cf76ba',
    500: '#b5319d',
    950: '#000000',
  },
}
SCSS
$custom: #b5319d;
$custom-light: #cf76ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b5319d",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 310.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5516,
    "c": 0.20239,
    "h": 336.4
  },
  "luminance": 0.14455
}

Semantic roles & 50–950 ramp

primary
#B5319D
secondary
#7BC789
accent
#E16347
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B5319D

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

Preview Lab → · Contrast checker → · Palette generator →

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