#B5318D#B5318D

#B5318D is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.4% C 0.192 H 342.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B5318D
RGBrgb(181, 49, 141)
HSLhsl(318, 57%, 45%)
HSVhsv(318, 73%, 71%)
CMYKcmyk(0%, 72.9%, 22.1%, 29%)
CIE-LABlab(44.16, 60.91, -21.27)
CIE-LCHlch(44.16, 64.52, 340.75°)
OKLaboklab(54.4% 0.1832 -0.057)
OKLCHoklch(54.4% 0.192 342.7)
XYZxyz(24.9630, 13.9460, 26.5713)
Luminance0.1394 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5318D #31B559
analogous
#9B31B5 #B5318D #B5314B
triadic
#B5318D #8DB531 #318DB5
tetradic
#B5318D #B59B31 #31B559 #314BB5
square
#B5318D #B59B31 #31B559 #314BB5
split-complementary
#B5318D #4BB531 #31B59B
monochromatic
#551742 #852467 #B5318D #D053AA #DD83C2

Accessibility & contrast

On white

5.54
#B5318D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B5318D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5318D
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5318D#FFFFFF#000000##FFFFFF
##B5318D1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5B90
Deuteranopia (green-blind)
#67708A
Tritanopia (blue-blind)
#C0325B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b5318d;
/* rgb */ color: rgb(181, 49, 141);
/* oklch */ color: oklch(54.4% 0.192 342.7);
Tailwind
colors: {
  custom: {
    50: '#cf75ae',
    500: '#b5318d',
    950: '#000000',
  },
}
SCSS
$custom: #b5318d;
$custom-light: #cf75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b5318d",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 318.182,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54397,
    "c": 0.19183,
    "h": 342.7
  },
  "luminance": 0.13943
}

Semantic roles & 50–950 ramp

primary
#B5318D
secondary
#7BC792
accent
#E17647
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5318D

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

Preview Lab → · Contrast checker → · Palette generator →

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