#5D0F52#5D0F52

#5D0F52 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.133 H 334.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#5D0F52
RGBrgb(93, 15, 82)
HSLhsl(308, 72%, 21%)
HSVhsv(308, 84%, 36%)
CMYKcmyk(0%, 83.9%, 11.8%, 63.5%)
CIE-LABlab(21.13, 41.33, -20.75)
CIE-LCHlch(21.13, 46.25, 333.35°)
OKLaboklab(33.78% 0.1206 -0.0568)
OKLCHoklch(33.78% 0.133 334.8)
XYZxyz(6.2081, 3.2786, 8.2869)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D0F52 #0F5D1A
analogous
#410F5D #5D0F52 #5D0F2B
triadic
#5D0F52 #525D0F #0F525D
tetradic
#5D0F52 #5D410F #0F5D1A #0F2B5D
square
#5D0F52 #5D410F #0F5D1A #0F2B5D
split-complementary
#5D0F52 #2B5D0F #0F5D41
monochromatic
#1A0417 #280624 #5D0F52 #921780 #C620AF

Accessibility & contrast

On white

12.68
#5D0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5D0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D0F52
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D0F52#FFFFFF#000000##FFFFFF
##5D0F521.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2B54
Deuteranopia (green-blind)
#2C3750
Tritanopia (blue-blind)
#621730
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5d0f52;
/* rgb */ color: rgb(93, 15, 82);
/* oklch */ color: oklch(33.8% 0.133 334.8);
Tailwind
colors: {
  custom: {
    50: '#8e5883',
    500: '#5d0f52',
    950: '#000000',
  },
}
SCSS
$custom: #5d0f52;
$custom-light: #8e5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5d0f52",
  "rgb": {
    "r": 93,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 308.462,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33778,
    "c": 0.13327,
    "h": 334.8
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#5D0F52
secondary
#319640
accent
#EF5339
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5D0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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