#B5318E#B5318E

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

Color values

HEX#B5318E
RGBrgb(181, 49, 142)
HSLhsl(318, 57%, 45%)
HSVhsv(318, 73%, 71%)
CMYKcmyk(0%, 72.9%, 21.5%, 29%)
CIE-LABlab(44.20, 61.04, -21.81)
CIE-LCHlch(44.20, 64.82, 340.34°)
OKLaboklab(54.44% 0.1834 -0.0585)
OKLCHoklch(54.44% 0.192 342.3)
XYZxyz(25.0377, 13.9759, 26.9650)
Luminance0.1397 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5318E #31B558
analogous
#9A31B5 #B5318E #B5314C
triadic
#B5318E #8EB531 #318EB5
tetradic
#B5318E #B59A31 #31B558 #314CB5
square
#B5318E #B59A31 #31B558 #314CB5
split-complementary
#B5318E #4CB531 #31B59A
monochromatic
#551742 #852468 #B5318E #D053AB #DD83C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5318E#FFFFFF#000000##FFFFFF
##B5318E1.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5318e;
/* rgb */ color: rgb(181, 49, 142);
/* oklch */ color: oklch(54.4% 0.192 342.3);
Tailwind
colors: {
  custom: {
    50: '#cf75af',
    500: '#b5318e',
    950: '#000000',
  },
}
SCSS
$custom: #b5318e;
$custom-light: #cf75af;
$custom-dark: #000000;
JSON
{
  "hex": "#b5318e",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 317.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54443,
    "c": 0.19245,
    "h": 342.3
  },
  "luminance": 0.13973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5318E

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

Preview Lab → · Contrast checker → · Palette generator →

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