#5D147E#5D147E

#5D147E is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.167 H 312.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5D147E
RGBrgb(93, 20, 126)
HSLhsl(281, 73%, 29%)
HSVhsv(281, 84%, 49%)
CMYKcmyk(26.2%, 84.1%, 0%, 50.6%)
CIE-LABlab(24.75, 48.22, -43.67)
CIE-LCHlch(24.75, 65.06, 317.84°)
OKLaboklab(37.32% 0.1115 -0.1238)
OKLCHoklch(37.32% 0.167 312)
XYZxyz(8.5295, 4.3341, 20.1219)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D147E #357E14
analogous
#28147E #5D147E #7E146A
triadic
#5D147E #7E5D14 #147E5D
tetradic
#5D147E #7E2814 #357E14 #146A7E
square
#5D147E #7E2814 #357E14 #146A7E
split-complementary
#5D147E #6A7E14 #147E28
monochromatic
#13041A #360C49 #5D147E #841CB3 #A72EDE

Accessibility & contrast

On white

11.25
#5D147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D147E
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D147E#FFFFFF#000000##FFFFFF
##5D147E1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#592F4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d147e;
/* rgb */ color: rgb(93, 20, 126);
/* oklch */ color: oklch(37.3% 0.167 312.0);
Tailwind
colors: {
  custom: {
    50: '#8f5ca4',
    500: '#5d147e',
    950: '#000000',
  },
}
SCSS
$custom: #5d147e;
$custom-light: #8f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d147e",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 281.321,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37316,
    "c": 0.16656,
    "h": 312
  },
  "luminance": 0.04334
}

Semantic roles & 50–950 ramp

primary
#5D147E
secondary
#60B33A
accent
#EF3871
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D147E

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

Preview Lab → · Contrast checker → · Palette generator →

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