#B5417C#B5417C

#B5417C is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.3% C 0.162 H 352.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B5417C
RGBrgb(181, 65, 124)
HSLhsl(329, 47%, 48%)
HSVhsv(329, 64%, 71%)
CMYKcmyk(0%, 64.1%, 31.5%, 29%)
CIE-LABlab(45.72, 52.55, -8.55)
CIE-LCHlch(45.72, 53.24, 350.76°)
OKLaboklab(55.33% 0.1601 -0.022)
OKLCHoklch(55.33% 0.162 352.2)
XYZxyz(24.5857, 15.0622, 20.6774)
Luminance0.1506 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5417C #41B57A
analogous
#B441B5 #B5417C #B54142
triadic
#B5417C #7CB541 #417CB5
tetradic
#B5417C #B5B441 #41B57A #4142B5
square
#B5417C #B5B441 #41B57A #4142B5
split-complementary
#B5417C #42B541 #41B5B4
monochromatic
#5B213E #88315D #B5417C #C96A9A #DA97B9

Accessibility & contrast

On white

5.23
#B5417C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B5417C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5417C
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5417C#FFFFFF#000000##FFFFFF
##B5417C1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525F7E
Deuteranopia (green-blind)
#727479
Tritanopia (blue-blind)
#C23A59
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b5417c;
/* rgb */ color: rgb(181, 65, 124);
/* oklch */ color: oklch(55.3% 0.162 352.2);
Tailwind
colors: {
  custom: {
    50: '#cf7da1',
    500: '#b5417c',
    950: '#000000',
  },
}
SCSS
$custom: #b5417c;
$custom-light: #cf7da1;
$custom-dark: #000000;
JSON
{
  "hex": "#b5417c",
  "rgb": {
    "r": 181,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 329.483,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55329,
    "c": 0.16158,
    "h": 352.2
  },
  "luminance": 0.1506
}

Semantic roles & 50–950 ramp

primary
#B5417C
secondary
#8CC5A8
accent
#D79351
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#140A0F
muted
#837C7E

Preview Lab

Preview with #B5417C

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

Preview Lab → · Contrast checker → · Palette generator →

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