#5C0D52#5C0D52

#5C0D52 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.135 H 334.2°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#5C0D52
RGBrgb(92, 13, 82)
HSLhsl(308, 75%, 21%)
HSVhsv(308, 86%, 36%)
CMYKcmyk(0%, 85.9%, 10.9%, 63.9%)
CIE-LABlab(20.72, 41.68, -21.39)
CIE-LCHlch(20.72, 46.85, 332.83°)
OKLaboklab(33.45% 0.1212 -0.0587)
OKLCHoklch(33.45% 0.135 334.2)
XYZxyz(6.0806, 3.1729, 8.2732)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C0D52 #0D5C17
analogous
#3E0D5C #5C0D52 #5C0D2A
triadic
#5C0D52 #525C0D #0D525C
tetradic
#5C0D52 #5C3E0D #0D5C17 #0D2A5C
square
#5C0D52 #5C3E0D #0D5C17 #0D2A5C
split-complementary
#5C0D52 #2A5C0D #0D5C3E
monochromatic
#1B0418 #260522 #5C0D52 #921582 #C71CB2

Accessibility & contrast

On white

12.85
#5C0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5C0D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C0D52
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C0D52#FFFFFF#000000##FFFFFF
##5C0D521.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2B54
Deuteranopia (green-blind)
#2A3650
Tritanopia (blue-blind)
#61162F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5c0d52;
/* rgb */ color: rgb(92, 13, 82);
/* oklch */ color: oklch(33.5% 0.135 334.2);
Tailwind
colors: {
  custom: {
    50: '#8d5783',
    500: '#5c0d52',
    950: '#000000',
  },
}
SCSS
$custom: #5c0d52;
$custom-light: #8d5783;
$custom-dark: #000000;
JSON
{
  "hex": "#5c0d52",
  "rgb": {
    "r": 92,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 307.595,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33453,
    "c": 0.13467,
    "h": 334.2
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#5C0D52
secondary
#2F963C
accent
#F24E36
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5C0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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