#5D1259#5D1259

#5D1259 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.136 H 330.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#5D1259
RGBrgb(93, 18, 89)
HSLhsl(303, 68%, 22%)
HSVhsv(303, 81%, 36%)
CMYKcmyk(0%, 80.6%, 4.3%, 63.5%)
CIE-LABlab(21.88, 41.56, -24.25)
CIE-LCHlch(21.88, 48.12, 329.73°)
OKLaboklab(34.45% 0.118 -0.0669)
OKLCHoklch(34.45% 0.136 330.4)
XYZxyz(6.5337, 3.4816, 9.7771)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1259 #125D16
analogous
#3C125D #5D1259 #5D1234
triadic
#5D1259 #595D12 #12595D
tetradic
#5D1259 #5D3C12 #125D16 #12345D
square
#5D1259 #5D3C12 #125D16 #12345D
split-complementary
#5D1259 #345D12 #125D3C
monochromatic
#1A0519 #2A0828 #5D1259 #901C8A #C426BB

Accessibility & contrast

On white

12.38
#5D1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5D1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1259
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1259#FFFFFF#000000##FFFFFF
##5D12591.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5B
Deuteranopia (green-blind)
#293857
Tritanopia (blue-blind)
#611C35
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5d1259;
/* rgb */ color: rgb(93, 18, 89);
/* oklch */ color: oklch(34.4% 0.136 330.4);
Tailwind
colors: {
  custom: {
    50: '#8e5a88',
    500: '#5d1259',
    950: '#000000',
  },
}
SCSS
$custom: #5d1259;
$custom-light: #8e5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1259",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 303.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3445,
    "c": 0.13567,
    "h": 330.4
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#5D1259
secondary
#35953B
accent
#EA473D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5D1259

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

Preview Lab → · Contrast checker → · Palette generator →

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