#B5317C#B5317C

#B5317C is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.7% C 0.182 H 350.2°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B5317C
RGBrgb(181, 49, 124)
HSLhsl(326, 57%, 45%)
HSVhsv(326, 73%, 71%)
CMYKcmyk(0%, 72.9%, 31.5%, 29%)
CIE-LABlab(43.48, 58.76, -11.92)
CIE-LCHlch(43.48, 59.96, 348.53°)
OKLaboklab(53.68% 0.1795 -0.0311)
OKLCHoklch(53.68% 0.182 350.2)
XYZxyz(23.7937, 13.4783, 20.4134)
Luminance0.1348 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5317C #31B56A
analogous
#AC31B5 #B5317C #B5313A
triadic
#B5317C #7CB531 #317CB5
tetradic
#B5317C #B5AC31 #31B56A #313AB5
square
#B5317C #B5AC31 #31B56A #313AB5
split-complementary
#B5317C #3AB531 #31B5AC
monochromatic
#55173A #85245B #B5317C #D0539A #DD83B6

Accessibility & contrast

On white

5.68
#B5317C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B5317C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5317C
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5317C#FFFFFF#000000##FFFFFF
##B5317C1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46587E
Deuteranopia (green-blind)
#6C6F79
Tritanopia (blue-blind)
#C22952
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b5317c;
/* rgb */ color: rgb(181, 49, 124);
/* oklch */ color: oklch(53.7% 0.182 350.2);
Tailwind
colors: {
  custom: {
    50: '#d075a2',
    500: '#b5317c',
    950: '#000000',
  },
}
SCSS
$custom: #b5317c;
$custom-light: #d075a2;
$custom-dark: #000000;
JSON
{
  "hex": "#b5317c",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 325.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53679,
    "c": 0.18215,
    "h": 350.2
  },
  "luminance": 0.13476
}

Semantic roles & 50–950 ramp

primary
#B5317C
secondary
#7BC79C
accent
#E18947
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #B5317C

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

Preview Lab → · Contrast checker → · Palette generator →

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