#5B0F4D#5B0F4D

#5B0F4D is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.1% C 0.128 H 336.9°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#5B0F4D
RGBrgb(91, 15, 77)
HSLhsl(311, 72%, 21%)
HSVhsv(311, 84%, 36%)
CMYKcmyk(0%, 83.5%, 15.4%, 64.3%)
CIE-LABlab(20.45, 40.02, -18.45)
CIE-LCHlch(20.45, 44.07, 335.25°)
OKLaboklab(33.13% 0.118 -0.0503)
OKLCHoklch(33.13% 0.128 336.9)
XYZxyz(5.8249, 3.1022, 7.3117)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F4D #0F5B1D
analogous
#430F5B #5B0F4D #5B0F27
triadic
#5B0F4D #4D5B0F #0F4D5B
tetradic
#5B0F4D #5B430F #0F5B1D #0F275B
square
#5B0F4D #5B430F #0F5B1D #0F275B
split-complementary
#5B0F4D #275B0F #0F5B43
monochromatic
#1A0416 #260621 #5B0F4D #901879 #C420A6

Accessibility & contrast

On white

12.96
#5B0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B0F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F4D
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F4D#FFFFFF#000000##FFFFFF
##5B0F4D1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#2C354B
Tritanopia (blue-blind)
#60142D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0f4d;
/* rgb */ color: rgb(91, 15, 77);
/* oklch */ color: oklch(33.1% 0.128 336.9);
Tailwind
colors: {
  custom: {
    50: '#8c587f',
    500: '#5b0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f4d;
$custom-light: #8c587f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f4d",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 311.053,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33126,
    "c": 0.12826,
    "h": 336.9
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#5B0F4D
secondary
#319544
accent
#EE5B39
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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