#B5318C#B5318C

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

Color values

HEX#B5318C
RGBrgb(181, 49, 140)
HSLhsl(319, 57%, 45%)
HSVhsv(319, 73%, 71%)
CMYKcmyk(0%, 72.9%, 22.7%, 29%)
CIE-LABlab(44.11, 60.78, -20.72)
CIE-LCHlch(44.11, 64.21, 341.17°)
OKLaboklab(54.35% 0.183 -0.0554)
OKLCHoklch(54.35% 0.191 343.1)
XYZxyz(24.8889, 13.9164, 26.1812)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5318C #31B55A
analogous
#9C31B5 #B5318C #B5314A
triadic
#B5318C #8CB531 #318CB5
tetradic
#B5318C #B59C31 #31B55A #314AB5
square
#B5318C #B59C31 #31B55A #314AB5
split-complementary
#B5318C #4AB531 #31B59C
monochromatic
#551741 #852467 #B5318C #D053A9 #DD83C1

Accessibility & contrast

On white

5.55
#B5318C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B5318C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5318C
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5318C#FFFFFF#000000##FFFFFF
##B5318C1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5A8F
Deuteranopia (green-blind)
#677089
Tritanopia (blue-blind)
#C1315A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b5318c;
/* rgb */ color: rgb(181, 49, 140);
/* oklch */ color: oklch(54.4% 0.191 343.1);
Tailwind
colors: {
  custom: {
    50: '#cf75ad',
    500: '#b5318c',
    950: '#000000',
  },
}
SCSS
$custom: #b5318c;
$custom-light: #cf75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b5318c",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 318.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54352,
    "c": 0.19121,
    "h": 343.1
  },
  "luminance": 0.13914
}

Semantic roles & 50–950 ramp

primary
#B5318C
secondary
#7BC793
accent
#E17747
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5318C

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

Preview Lab → · Contrast checker → · Palette generator →

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