#5B0D4D#5B0D4D

#5B0D4D is a dark, vivid pink. Relative luminance 0.030; OKLCH L 33.0% C 0.130 H 336.9°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#5B0D4D
RGBrgb(91, 13, 77)
HSLhsl(311, 75%, 20%)
HSVhsv(311, 86%, 36%)
CMYKcmyk(0%, 85.7%, 15.4%, 64.3%)
CIE-LABlab(20.24, 40.63, -18.78)
CIE-LCHlch(20.24, 44.76, 335.19°)
OKLaboklab(32.97% 0.1198 -0.0512)
OKLCHoklch(32.97% 0.13 336.9)
XYZxyz(5.7980, 3.0484, 7.3028)
Luminance0.0305 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0D4D #0D5B1B
analogous
#420D5B #5B0D4D #5B0D26
triadic
#5B0D4D #4D5B0D #0D4D5B
tetradic
#5B0D4D #5B420D #0D5B1B #0D265B
square
#5B0D4D #5B420D #0D5B1B #0D265B
split-complementary
#5B0D4D #265B0D #0D5B42
monochromatic
#1B0417 #250520 #5B0D4D #91157A #C61CA8

Accessibility & contrast

On white

13.05
#5B0D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0D4D
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0D4D#FFFFFF#000000##FFFFFF
##5B0D4D1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F294F
Deuteranopia (green-blind)
#2C354B
Tritanopia (blue-blind)
#60132D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0d4d;
/* rgb */ color: rgb(91, 13, 77);
/* oklch */ color: oklch(33.0% 0.130 336.9);
Tailwind
colors: {
  custom: {
    50: '#8d577f',
    500: '#5b0d4d',
    950: '#000000',
  },
}
SCSS
$custom: #5b0d4d;
$custom-light: #8d577f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0d4d",
  "rgb": {
    "r": 91,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 310.769,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32974,
    "c": 0.13031,
    "h": 336.9
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#5B0D4D
secondary
#2F9541
accent
#F25836
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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