#5B0C4E#5B0C4E

#5B0C4E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 33.0% C 0.132 H 336.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#5B0C4E
RGBrgb(91, 12, 78)
HSLhsl(310, 77%, 20%)
HSVhsv(310, 87%, 36%)
CMYKcmyk(0%, 86.8%, 14.3%, 64.3%)
CIE-LABlab(20.19, 41.08, -19.53)
CIE-LCHlch(20.19, 45.48, 334.57°)
OKLaboklab(32.96% 0.1208 -0.0533)
OKLCHoklch(32.96% 0.132 336.2)
XYZxyz(5.8211, 3.0377, 7.4860)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0C4E #0C5B19
analogous
#400C5B #5B0C4E #5B0C27
triadic
#5B0C4E #4E5B0C #0C4E5B
tetradic
#5B0C4E #5B400C #0C5B19 #0C275B
square
#5B0C4E #5B400C #0C5B19 #0C275B
split-complementary
#5B0C4E #275B0C #0C5B40
monochromatic
#1B0417 #250520 #5B0C4E #91137C #C71AAB

Accessibility & contrast

On white

13.06
#5B0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0C4E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0C4E#FFFFFF#000000##FFFFFF
##5B0C4E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2950
Deuteranopia (green-blind)
#2B354C
Tritanopia (blue-blind)
#60132D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0c4e;
/* rgb */ color: rgb(91, 12, 78);
/* oklch */ color: oklch(33.0% 0.132 336.2);
Tailwind
colors: {
  custom: {
    50: '#8d5780',
    500: '#5b0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b0c4e;
$custom-light: #8d5780;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0c4e",
  "rgb": {
    "r": 91,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 309.873,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32962,
    "c": 0.13201,
    "h": 336.2
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#5B0C4E
secondary
#2D963E
accent
#F35435
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #5B0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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