#5B0E5D#5B0E5D

#5B0E5D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.142 H 327.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#5B0E5D
RGBrgb(91, 14, 93)
HSLhsl(298, 74%, 21%)
HSVhsv(298, 85%, 36%)
CMYKcmyk(2.2%, 84.9%, 0%, 63.5%)
CIE-LABlab(21.32, 43.07, -27.83)
CIE-LCHlch(21.32, 51.28, 327.13°)
OKLaboklab(34.06% 0.1191 -0.0774)
OKLCHoklch(34.06% 0.142 327)
XYZxyz(6.4471, 3.3290, 10.6568)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E5D #105D0E
analogous
#330E5D #5B0E5D #5D0E37
triadic
#5B0E5D #5D5B0E #0E5D5B
tetradic
#5B0E5D #5D330E #105D0E #0E375D
square
#5B0E5D #5D330E #105D0E #0E375D
split-complementary
#5B0E5D #375D0E #0E5D33
monochromatic
#1A041B #270628 #5B0E5D #8F1692 #C31EC7

Accessibility & contrast

On white

12.61
#5B0E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B0E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0E5D
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E5D#FFFFFF#000000##FFFFFF
##5B0E5D1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#24365B
Tritanopia (blue-blind)
#5E1D36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b0e5d;
/* rgb */ color: rgb(91, 14, 93);
/* oklch */ color: oklch(34.1% 0.142 327.0);
Tailwind
colors: {
  custom: {
    50: '#8d588b',
    500: '#5b0e5d',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e5d;
$custom-light: #8d588b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e5d",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 298.481,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3406,
    "c": 0.14205,
    "h": 327
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#5B0E5D
secondary
#339730
accent
#F0373C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B0E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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