#5D158D#5D158D

#5D158D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.180 H 306.3°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5D158D
RGBrgb(93, 21, 141)
HSLhsl(276, 74%, 32%)
HSVhsv(276, 85%, 55%)
CMYKcmyk(34%, 85.1%, 0%, 44.7%)
CIE-LABlab(26.12, 51.22, -50.84)
CIE-LCHlch(26.12, 72.17, 315.21°)
OKLaboklab(38.66% 0.1065 -0.1449)
OKLCHoklch(38.66% 0.18 306.3)
XYZxyz(9.5890, 4.7867, 25.6129)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D158D #458D15
analogous
#21158D #5D158D #8D1581
triadic
#5D158D #8D5D15 #158D5D
tetradic
#5D158D #8D2115 #458D15 #15818D
square
#5D158D #8D2115 #458D15 #15818D
split-complementary
#5D158D #818D15 #158D21
monochromatic
#170522 #3A0D58 #5D158D #801DC2 #9F3BE2

Accessibility & contrast

On white

10.73
#5D158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D158D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D158D#FFFFFF#000000##FFFFFF
##5D158D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#543753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d158d;
/* rgb */ color: rgb(93, 21, 141);
/* oklch */ color: oklch(38.7% 0.180 306.3);
Tailwind
colors: {
  custom: {
    50: '#905eaf',
    500: '#5d158d',
    950: '#000000',
  },
}
SCSS
$custom: #5d158d;
$custom-light: #905eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d158d",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 276,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38663,
    "c": 0.1798,
    "h": 306.3
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#5D158D
secondary
#72C13D
accent
#F13781
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D158D

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

Preview Lab → · Contrast checker → · Palette generator →

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