#5D147B#5D147B

#5D147B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.164 H 313.2°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#5D147B
RGBrgb(93, 20, 123)
HSLhsl(283, 72%, 28%)
HSVhsv(283, 84%, 48%)
CMYKcmyk(24.4%, 83.7%, 0%, 51.8%)
CIE-LABlab(24.51, 47.58, -42.15)
CIE-LCHlch(24.51, 63.57, 318.46°)
OKLaboklab(37.07% 0.1122 -0.1193)
OKLCHoklch(37.07% 0.164 313.2)
XYZxyz(8.3389, 4.2578, 19.1176)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D147B #327B14
analogous
#29147B #5D147B #7B1465
triadic
#5D147B #7B5D14 #147B5D
tetradic
#5D147B #7B2914 #327B14 #14657B
square
#5D147B #7B2914 #327B14 #14657B
split-complementary
#5D147B #657B14 #147B29
monochromatic
#14041A #350B46 #5D147B #851DB0 #A92DDD

Accessibility & contrast

On white

11.34
#5D147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5D147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D147B
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D147B#FFFFFF#000000##FFFFFF
##5D147B1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#5A2E48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d147b;
/* rgb */ color: rgb(93, 20, 123);
/* oklch */ color: oklch(37.1% 0.164 313.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ca2',
    500: '#5d147b',
    950: '#000000',
  },
}
SCSS
$custom: #5d147b;
$custom-light: #8f5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d147b",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 282.524,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37072,
    "c": 0.16378,
    "h": 313.2
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#5D147B
secondary
#5DB13A
accent
#EF396E
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D147B

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

Preview Lab → · Contrast checker → · Palette generator →

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