#5D155A#5D155A

#5D155A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.133 H 329.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5D155A
RGBrgb(93, 21, 90)
HSLhsl(303, 63%, 22%)
HSVhsv(303, 77%, 36%)
CMYKcmyk(0%, 77.4%, 3.2%, 63.5%)
CIE-LABlab(22.31, 40.67, -24.23)
CIE-LCHlch(22.31, 47.34, 329.21°)
OKLaboklab(34.78% 0.115 -0.0669)
OKLCHoklch(34.78% 0.133 329.8)
XYZxyz(6.6278, 3.6022, 10.0171)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D155A #155D18
analogous
#3C155D #5D155A #5D1536
triadic
#5D155A #5A5D15 #155A5D
tetradic
#5D155A #5D3C15 #155D18 #15365D
square
#5D155A #5D3C15 #155D18 #15365D
split-complementary
#5D155A #365D15 #155D3C
monochromatic
#190618 #2B0A2A #5D155A #8F208A #C12CBB

Accessibility & contrast

On white

12.21
#5D155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5D155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D155A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D155A#FFFFFF#000000##FFFFFF
##5D155A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#2A3958
Tritanopia (blue-blind)
#611F36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d155a;
/* rgb */ color: rgb(93, 21, 90);
/* oklch */ color: oklch(34.8% 0.133 329.8);
Tailwind
colors: {
  custom: {
    50: '#8e5b89',
    500: '#5d155a',
    950: '#000000',
  },
}
SCSS
$custom: #5d155a;
$custom-light: #8e5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5d155a",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 302.5,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34779,
    "c": 0.13302,
    "h": 329.8
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#5D155A
secondary
#39943D
accent
#E64842
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5D155A

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

Preview Lab → · Contrast checker → · Palette generator →

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