#5D155F#5D155F

#5D155F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.137 H 326.8°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5D155F
RGBrgb(93, 21, 95)
HSLhsl(298, 64%, 23%)
HSVhsv(298, 78%, 37%)
CMYKcmyk(2.1%, 77.9%, 0%, 62.7%)
CIE-LABlab(22.62, 41.59, -27.06)
CIE-LCHlch(22.62, 49.62, 326.95°)
OKLaboklab(35.1% 0.115 -0.0751)
OKLCHoklch(35.1% 0.137 326.8)
XYZxyz(6.8478, 3.6902, 11.1759)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D155F #175F15
analogous
#38155F #5D155F #5F153C
triadic
#5D155F #5F5D15 #155F5D
tetradic
#5D155F #5F3815 #175F15 #153C5F
square
#5D155F #5F3815 #175F15 #153C5F
split-complementary
#5D155F #3C5F15 #155F38
monochromatic
#190619 #2C0A2D #5D155F #8E2091 #BF2BC3

Accessibility & contrast

On white

12.08
#5D155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5D155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D155F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D155F#FFFFFF#000000##FFFFFF
##5D155F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d155f;
/* rgb */ color: rgb(93, 21, 95);
/* oklch */ color: oklch(35.1% 0.137 326.8);
Tailwind
colors: {
  custom: {
    50: '#8e5b8d',
    500: '#5d155f',
    950: '#000000',
  },
}
SCSS
$custom: #5d155f;
$custom-light: #8e5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d155f",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 298.378,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35101,
    "c": 0.13733,
    "h": 326.8
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#5D155F
secondary
#3C963A
accent
#E74145
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D155F

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

Preview Lab → · Contrast checker → · Palette generator →

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