#5D147C#5D147C

#5D147C is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.165 H 312.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#5D147C
RGBrgb(93, 20, 124)
HSLhsl(282, 72%, 28%)
HSVhsv(282, 84%, 49%)
CMYKcmyk(25%, 83.9%, 0%, 51.4%)
CIE-LABlab(24.59, 47.79, -42.66)
CIE-LCHlch(24.59, 64.06, 318.25°)
OKLaboklab(37.15% 0.112 -0.1208)
OKLCHoklch(37.15% 0.165 312.8)
XYZxyz(8.4018, 4.2830, 19.4490)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D147C #337C14
analogous
#29147C #5D147C #7C1467
triadic
#5D147C #7C5D14 #147C5D
tetradic
#5D147C #7C2914 #337C14 #14677C
square
#5D147C #7C2914 #337C14 #14677C
split-complementary
#5D147C #677C14 #147C29
monochromatic
#14041A #350B47 #5D147C #851DB1 #A92DDD

Accessibility & contrast

On white

11.31
#5D147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D147C
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D147C#FFFFFF#000000##FFFFFF
##5D147C1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#013C7A
Tritanopia (blue-blind)
#592E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d147c;
/* rgb */ color: rgb(93, 20, 124);
/* oklch */ color: oklch(37.2% 0.165 312.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ca3',
    500: '#5d147c',
    950: '#000000',
  },
}
SCSS
$custom: #5d147c;
$custom-light: #8f5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d147c",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 282.115,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.1647,
    "h": 312.8
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#5D147C
secondary
#5EB23A
accent
#EF396F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D147C

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

Preview Lab → · Contrast checker → · Palette generator →

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