#5B0D4E#5B0D4E

#5B0D4E is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.0% C 0.131 H 336.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#5B0D4E
RGBrgb(91, 13, 78)
HSLhsl(310, 75%, 20%)
HSVhsv(310, 86%, 36%)
CMYKcmyk(0%, 85.7%, 14.3%, 64.3%)
CIE-LABlab(20.29, 40.79, -19.37)
CIE-LCHlch(20.29, 45.16, 334.60°)
OKLaboklab(33.03% 0.1199 -0.0529)
OKLCHoklch(33.03% 0.131 336.2)
XYZxyz(5.8336, 3.0626, 7.4902)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0D4E #0D5B1A
analogous
#410D5B #5B0D4E #5B0D27
triadic
#5B0D4E #4E5B0D #0D4E5B
tetradic
#5B0D4E #5B410D #0D5B1A #0D275B
square
#5B0D4E #5B410D #0D5B1A #0D275B
split-complementary
#5B0D4E #275B0D #0D5B41
monochromatic
#1B0417 #250520 #5B0D4E #91157C #C61CAA

Accessibility & contrast

On white

13.02
#5B0D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5B0D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0D4E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0D4E#FFFFFF#000000##FFFFFF
##5B0D4E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2A50
Deuteranopia (green-blind)
#2B354C
Tritanopia (blue-blind)
#60142D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0d4e;
/* rgb */ color: rgb(91, 13, 78);
/* oklch */ color: oklch(33.0% 0.131 336.2);
Tailwind
colors: {
  custom: {
    50: '#8d5780',
    500: '#5b0d4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b0d4e;
$custom-light: #8d5780;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0d4e",
  "rgb": {
    "r": 91,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 310,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33033,
    "c": 0.13106,
    "h": 336.2
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#5B0D4E
secondary
#2F9540
accent
#F25536
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0D4E

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

Preview Lab → · Contrast checker → · Palette generator →

#5B0D4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva