#5B0E4E#5B0E4E

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

Color values

HEX#5B0E4E
RGBrgb(91, 14, 78)
HSLhsl(310, 73%, 21%)
HSVhsv(310, 85%, 36%)
CMYKcmyk(0%, 84.6%, 14.3%, 64.3%)
CIE-LABlab(20.40, 40.50, -19.21)
CIE-LCHlch(20.40, 44.82, 334.62°)
OKLaboklab(33.11% 0.119 -0.0524)
OKLCHoklch(33.11% 0.13 336.2)
XYZxyz(5.8467, 3.0888, 7.4945)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E4E #0E5B1B
analogous
#410E5B #5B0E4E #5B0E27
triadic
#5B0E4E #4E5B0E #0E4E5B
tetradic
#5B0E4E #5B410E #0E5B1B #0E275B
square
#5B0E4E #5B410E #0E5B1B #0E275B
split-complementary
#5B0E4E #275B0E #0E5B41
monochromatic
#1B0417 #260621 #5B0E4E #90167B #C51EA9

Accessibility & contrast

On white

12.98
#5B0E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0E4E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E4E#FFFFFF#000000##FFFFFF
##5B0E4E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b0e4e;
/* rgb */ color: rgb(91, 14, 78);
/* oklch */ color: oklch(33.1% 0.130 336.2);
Tailwind
colors: {
  custom: {
    50: '#8c5780',
    500: '#5b0e4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e4e;
$custom-light: #8c5780;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e4e",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 78
  },
  "hsl": {
    "h": 310.13,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33107,
    "c": 0.13006,
    "h": 336.2
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#5B0E4E
secondary
#309541
accent
#F05738
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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