#5D135F#5D135F

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

Color values

HEX#5D135F
RGBrgb(93, 19, 95)
HSLhsl(298, 67%, 22%)
HSVhsv(298, 80%, 37%)
CMYKcmyk(2.1%, 80%, 0%, 62.7%)
CIE-LABlab(22.37, 42.30, -27.45)
CIE-LCHlch(22.37, 50.43, 327.02°)
OKLaboklab(34.92% 0.117 -0.0762)
OKLCHoklch(34.92% 0.14 326.9)
XYZxyz(6.8125, 3.6196, 11.1641)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D135F #155F13
analogous
#37135F #5D135F #5F133B
triadic
#5D135F #5F5D13 #135F5D
tetradic
#5D135F #5F3713 #155F13 #133B5F
square
#5D135F #5F3713 #155F13 #133B5F
split-complementary
#5D135F #3B5F13 #135F37
monochromatic
#19051A #2B092C #5D135F #8F1D92 #C127C5

Accessibility & contrast

On white

12.18
#5D135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D135F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D135F#FFFFFF#000000##FFFFFF
##5D135F1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003061
Deuteranopia (green-blind)
#26395D
Tritanopia (blue-blind)
#602038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d135f;
/* rgb */ color: rgb(93, 19, 95);
/* oklch */ color: oklch(34.9% 0.140 326.9);
Tailwind
colors: {
  custom: {
    50: '#8e5a8d',
    500: '#5d135f',
    950: '#000000',
  },
}
SCSS
$custom: #5d135f;
$custom-light: #8e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d135f",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 298.421,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34924,
    "c": 0.13962,
    "h": 326.9
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#5D135F
secondary
#399737
accent
#EA3E43
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D135F

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

Preview Lab → · Contrast checker → · Palette generator →

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