#5D135E#5D135E

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

Color values

HEX#5D135E
RGBrgb(93, 19, 94)
HSLhsl(299, 66%, 22%)
HSVhsv(299, 80%, 37%)
CMYKcmyk(1.1%, 79.8%, 0%, 63.1%)
CIE-LABlab(22.31, 42.12, -26.89)
CIE-LCHlch(22.31, 49.97, 327.44°)
OKLaboklab(34.86% 0.117 -0.0746)
OKLCHoklch(34.86% 0.139 327.5)
XYZxyz(6.7674, 3.6015, 10.9262)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D135E #145E13
analogous
#38135E #5D135E #5E133A
triadic
#5D135E #5E5D13 #135E5D
tetradic
#5D135E #5E3813 #145E13 #133A5E
square
#5D135E #5E3813 #145E13 #133A5E
split-complementary
#5D135E #3A5E13 #135E38
monochromatic
#190519 #2B092B #5D135E #8F1D91 #C228C4

Accessibility & contrast

On white

12.21
#5D135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D135E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D135E#FFFFFF#000000##FFFFFF
##5D135E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F60
Deuteranopia (green-blind)
#27395C
Tritanopia (blue-blind)
#601F38
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d135e;
/* rgb */ color: rgb(93, 19, 94);
/* oklch */ color: oklch(34.9% 0.139 327.5);
Tailwind
colors: {
  custom: {
    50: '#8e5a8c',
    500: '#5d135e',
    950: '#000000',
  },
}
SCSS
$custom: #5d135e;
$custom-light: #8e5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d135e",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 299.2,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34858,
    "c": 0.13877,
    "h": 327.5
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#5D135E
secondary
#389637
accent
#E93F41
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D135E

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

Preview Lab → · Contrast checker → · Palette generator →

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