#5B0F4E#5B0F4E

#5B0F4E is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.2% C 0.129 H 336.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#5B0F4E
RGBrgb(91, 15, 78)
HSLhsl(310, 72%, 21%)
HSVhsv(310, 84%, 36%)
CMYKcmyk(0%, 83.5%, 14.3%, 64.3%)
CIE-LABlab(20.50, 40.19, -19.04)
CIE-LCHlch(20.50, 44.47, 334.64°)
OKLaboklab(33.18% 0.1181 -0.0519)
OKLCHoklch(33.18% 0.129 336.3)
XYZxyz(5.8605, 3.1164, 7.4991)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F4E #0F5B1C
analogous
#420F5B #5B0F4E #5B0F28
triadic
#5B0F4E #4E5B0F #0F4E5B
tetradic
#5B0F4E #5B420F #0F5B1C #0F285B
square
#5B0F4E #5B420F #0F5B1C #0F285B
split-complementary
#5B0F4E #285B0F #0F5B42
monochromatic
#1A0417 #260621 #5B0F4E #90187B #C420A8

Accessibility & contrast

On white

12.94
#5B0F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F4E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F4E#FFFFFF#000000##FFFFFF
##5B0F4E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#2C354C
Tritanopia (blue-blind)
#60152E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0f4e;
/* rgb */ color: rgb(91, 15, 78);
/* oklch */ color: oklch(33.2% 0.129 336.3);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5b0f4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f4e;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f4e",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 310.263,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33184,
    "c": 0.12901,
    "h": 336.3
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#5B0F4E
secondary
#319542
accent
#EE5839
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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