#5B0E4F#5B0E4F

#5B0E4F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.131 H 335.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#5B0E4F
RGBrgb(91, 14, 79)
HSLhsl(309, 73%, 21%)
HSVhsv(309, 85%, 36%)
CMYKcmyk(0%, 84.6%, 13.2%, 64.3%)
CIE-LABlab(20.45, 40.66, -19.80)
CIE-LCHlch(20.45, 45.22, 334.03°)
OKLaboklab(33.17% 0.1191 -0.0541)
OKLCHoklch(33.17% 0.131 335.6)
XYZxyz(5.8828, 3.1033, 7.6848)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E4F #0E5B1A
analogous
#400E5B #5B0E4F #5B0E28
triadic
#5B0E4F #4F5B0E #0E4F5B
tetradic
#5B0E4F #5B400E #0E5B1A #0E285B
square
#5B0E4F #5B400E #0E5B1A #0E285B
split-complementary
#5B0E4F #285B0E #0E5B40
monochromatic
#1B0417 #260621 #5B0E4F #90167D #C51EAB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B0E4F#FFFFFF#000000##FFFFFF
##5B0E4F1.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)
#0E2A51
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#60152E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0e4f;
/* rgb */ color: rgb(91, 14, 79);
/* oklch */ color: oklch(33.2% 0.131 335.6);
Tailwind
colors: {
  custom: {
    50: '#8c5780',
    500: '#5b0e4f',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e4f;
$custom-light: #8c5780;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e4f",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 309.351,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33166,
    "c": 0.13081,
    "h": 335.6
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#5B0E4F
secondary
#309540
accent
#F05538
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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