#B5318F#B5318F

#B5318F is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.5% C 0.193 H 341.9°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#B5318F
RGBrgb(181, 49, 143)
HSLhsl(317, 57%, 45%)
HSVhsv(317, 73%, 71%)
CMYKcmyk(0%, 72.9%, 21%, 29%)
CIE-LABlab(44.24, 61.18, -22.34)
CIE-LCHlch(44.24, 65.13, 339.94°)
OKLaboklab(54.49% 0.1835 -0.06)
OKLCHoklch(54.49% 0.193 341.9)
XYZxyz(25.1131, 14.0061, 27.3622)
Luminance0.1400 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5318F #31B557
analogous
#9931B5 #B5318F #B5314D
triadic
#B5318F #8FB531 #318FB5
tetradic
#B5318F #B59931 #31B557 #314DB5
square
#B5318F #B59931 #31B557 #314DB5
split-complementary
#B5318F #4DB531 #31B599
monochromatic
#551743 #852469 #B5318F #D053AC #DD83C3

Accessibility & contrast

On white

5.53
#B5318F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B5318F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5318F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5318F#FFFFFF#000000##FFFFFF
##B5318F1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5B92
Deuteranopia (green-blind)
#66708C
Tritanopia (blue-blind)
#C0335C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5318f;
/* rgb */ color: rgb(181, 49, 143);
/* oklch */ color: oklch(54.5% 0.193 341.9);
Tailwind
colors: {
  custom: {
    50: '#cf75b0',
    500: '#b5318f',
    950: '#000000',
  },
}
SCSS
$custom: #b5318f;
$custom-light: #cf75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b5318f",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 317.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54488,
    "c": 0.19308,
    "h": 341.9
  },
  "luminance": 0.14004
}

Semantic roles & 50–950 ramp

primary
#B5318F
secondary
#7BC791
accent
#E17347
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5318F

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

Preview Lab → · Contrast checker → · Palette generator →

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