#5D145F#5D145F

#5D145F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.139 H 326.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5D145F
RGBrgb(93, 20, 95)
HSLhsl(298, 65%, 23%)
HSVhsv(298, 79%, 37%)
CMYKcmyk(2.1%, 78.9%, 0%, 62.7%)
CIE-LABlab(22.49, 41.95, -27.26)
CIE-LCHlch(22.49, 50.03, 326.99°)
OKLaboklab(35.01% 0.116 -0.0757)
OKLCHoklch(35.01% 0.139 326.9)
XYZxyz(6.8298, 3.6542, 11.1699)
Luminance0.0365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D145F #165F14
analogous
#37145F #5D145F #5F143B
triadic
#5D145F #5F5D14 #145F5D
tetradic
#5D145F #5F3714 #165F14 #143B5F
square
#5D145F #5F3714 #165F14 #143B5F
split-complementary
#5D145F #3B5F14 #145F37
monochromatic
#190519 #2C092C #5D145F #8E1F92 #C029C4

Accessibility & contrast

On white

12.13
#5D145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D145F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D145F#FFFFFF#000000##FFFFFF
##5D145F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d145f;
/* rgb */ color: rgb(93, 20, 95);
/* oklch */ color: oklch(35.0% 0.139 326.9);
Tailwind
colors: {
  custom: {
    50: '#8e5b8d',
    500: '#5d145f',
    950: '#000000',
  },
}
SCSS
$custom: #5d145f;
$custom-light: #8e5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d145f",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 298.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.1385,
    "h": 326.9
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#5D145F
secondary
#3B9738
accent
#E84044
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D145F

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

Preview Lab → · Contrast checker → · Palette generator →

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