#5D1260#5D1260

#5D1260 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.142 H 326.4°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5D1260
RGBrgb(93, 18, 96)
HSLhsl(298, 68%, 22%)
HSVhsv(298, 81%, 38%)
CMYKcmyk(3.1%, 81.3%, 0%, 62.4%)
CIE-LABlab(22.32, 42.82, -28.19)
CIE-LCHlch(22.32, 51.27, 326.64°)
OKLaboklab(34.91% 0.1179 -0.0784)
OKLCHoklch(34.91% 0.142 326.4)
XYZxyz(6.8417, 3.6048, 11.3995)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1260 #156012
analogous
#361260 #5D1260 #60123C
triadic
#5D1260 #605D12 #12605D
tetradic
#5D1260 #603612 #156012 #123C60
square
#5D1260 #603612 #156012 #123C60
split-complementary
#5D1260 #3C6012 #126036
monochromatic
#19051A #2B082C #5D1260 #8F1C94 #C125C7

Accessibility & contrast

On white

12.20
#5D1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5D1260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1260
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1260#FFFFFF#000000##FFFFFF
##5D12601.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#25395E
Tritanopia (blue-blind)
#602039
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d1260;
/* rgb */ color: rgb(93, 18, 96);
/* oklch */ color: oklch(34.9% 0.142 326.4);
Tailwind
colors: {
  custom: {
    50: '#8e5a8d',
    500: '#5d1260',
    950: '#000000',
  },
}
SCSS
$custom: #5d1260;
$custom-light: #8e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1260",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 297.692,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.14156,
    "h": 326.4
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#5D1260
secondary
#399836
accent
#EB3D43
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D1260

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

Preview Lab → · Contrast checker → · Palette generator →

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