#5B0C4F#5B0C4F

#5B0C4F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.133 H 335.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#5B0C4F
RGBrgb(91, 12, 79)
HSLhsl(309, 77%, 20%)
HSVhsv(309, 87%, 36%)
CMYKcmyk(0%, 86.8%, 13.2%, 64.3%)
CIE-LABlab(20.25, 41.24, -20.12)
CIE-LCHlch(20.25, 45.88, 333.99°)
OKLaboklab(33.02% 0.1208 -0.055)
OKLCHoklch(33.02% 0.133 335.5)
XYZxyz(5.8572, 3.0522, 7.6763)
Luminance0.0305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0C4F #0C5B18
analogous
#3F0C5B #5B0C4F #5B0C27
triadic
#5B0C4F #4F5B0C #0C4F5B
tetradic
#5B0C4F #5B3F0C #0C5B18 #0C275B
square
#5B0C4F #5B3F0C #0C5B18 #0C275B
split-complementary
#5B0C4F #275B0C #0C5B3F
monochromatic
#1B0417 #250520 #5B0C4F #91137E #C71AAD

Accessibility & contrast

On white

13.04
#5B0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5B0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0C4F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0C4F#FFFFFF#000000##FFFFFF
##5B0C4F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2951
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#60142E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0c4f;
/* rgb */ color: rgb(91, 12, 79);
/* oklch */ color: oklch(33.0% 0.133 335.5);
Tailwind
colors: {
  custom: {
    50: '#8d5780',
    500: '#5b0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #5b0c4f;
$custom-light: #8d5780;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0c4f",
  "rgb": {
    "r": 91,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 309.114,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.33022,
    "c": 0.13276,
    "h": 335.5
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#5B0C4F
secondary
#2D963D
accent
#F35235
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #5B0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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