#5D145E#5D145E

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

Color values

HEX#5D145E
RGBrgb(93, 20, 94)
HSLhsl(299, 65%, 22%)
HSVhsv(299, 79%, 37%)
CMYKcmyk(1.1%, 78.7%, 0%, 63.1%)
CIE-LABlab(22.43, 41.76, -26.70)
CIE-LCHlch(22.43, 49.57, 327.41°)
OKLaboklab(34.95% 0.116 -0.0741)
OKLCHoklch(34.95% 0.138 327.4)
XYZxyz(6.7846, 3.6361, 10.9320)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D145E #155E14
analogous
#38145E #5D145E #5E143A
triadic
#5D145E #5E5D14 #145E5D
tetradic
#5D145E #5E3814 #155E14 #143A5E
square
#5D145E #5E3814 #155E14 #143A5E
split-complementary
#5D145E #3A5E14 #145E38
monochromatic
#190519 #2B092C #5D145E #8F1F90 #C129C3

Accessibility & contrast

On white

12.16
#5D145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5D145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D145E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D145E#FFFFFF#000000##FFFFFF
##5D145E1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043060
Deuteranopia (green-blind)
#27395C
Tritanopia (blue-blind)
#602038
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d145e;
/* rgb */ color: rgb(93, 20, 94);
/* oklch */ color: oklch(34.9% 0.138 327.4);
Tailwind
colors: {
  custom: {
    50: '#8e5b8c',
    500: '#5d145e',
    950: '#000000',
  },
}
SCSS
$custom: #5d145e;
$custom-light: #8e5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d145e",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 299.189,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.13763,
    "h": 327.4
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#5D145E
secondary
#399638
accent
#E84042
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D145E

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

Preview Lab → · Contrast checker → · Palette generator →

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