#5C0F52#5C0F52

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

Color values

HEX#5C0F52
RGBrgb(92, 15, 82)
HSLhsl(308, 72%, 21%)
HSVhsv(308, 84%, 36%)
CMYKcmyk(0%, 83.7%, 10.9%, 63.9%)
CIE-LABlab(20.93, 41.09, -21.07)
CIE-LCHlch(20.93, 46.17, 332.85°)
OKLaboklab(33.6% 0.1195 -0.0577)
OKLCHoklch(33.6% 0.133 334.2)
XYZxyz(6.1075, 3.2267, 8.2822)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C0F52 #0F5C19
analogous
#3F0F5C #5C0F52 #5C0F2B
triadic
#5C0F52 #525C0F #0F525C
tetradic
#5C0F52 #5C3F0F #0F5C19 #0F2B5C
square
#5C0F52 #5C3F0F #0F5C19 #0F2B5C
split-complementary
#5C0F52 #2B5C0F #0F5C3F
monochromatic
#1A0417 #270623 #5C0F52 #911881 #C520B0

Accessibility & contrast

On white

12.76
#5C0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5C0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C0F52
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C0F52#FFFFFF#000000##FFFFFF
##5C0F521.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#2B3650
Tritanopia (blue-blind)
#611730
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5c0f52;
/* rgb */ color: rgb(92, 15, 82);
/* oklch */ color: oklch(33.6% 0.133 334.2);
Tailwind
colors: {
  custom: {
    50: '#8d5883',
    500: '#5c0f52',
    950: '#000000',
  },
}
SCSS
$custom: #5c0f52;
$custom-light: #8d5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5c0f52",
  "rgb": {
    "r": 92,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 307.792,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33601,
    "c": 0.1327,
    "h": 334.2
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#5C0F52
secondary
#31953E
accent
#EF5139
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5C0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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