#5D158C#5D158C

#5D158C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.179 H 306.7°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5D158C
RGBrgb(93, 21, 140)
HSLhsl(276, 74%, 32%)
HSVhsv(276, 85%, 55%)
CMYKcmyk(33.6%, 85%, 0%, 45.1%)
CIE-LABlab(26.03, 51.00, -50.36)
CIE-LCHlch(26.03, 71.67, 315.36°)
OKLaboklab(38.58% 0.1068 -0.1434)
OKLCHoklch(38.58% 0.179 306.7)
XYZxyz(9.5150, 4.7570, 25.2228)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D158C #448C15
analogous
#22158C #5D158C #8C1580
triadic
#5D158C #8C5D15 #158C5D
tetradic
#5D158C #8C2215 #448C15 #15808C
square
#5D158C #8C2215 #448C15 #15808C
split-complementary
#5D158C #808C15 #158C22
monochromatic
#160522 #3A0D57 #5D158C #801DC1 #9F3AE1

Accessibility & contrast

On white

10.76
#5D158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D158C
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D158C#FFFFFF#000000##FFFFFF
##5D158C1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#553652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d158c;
/* rgb */ color: rgb(93, 21, 140);
/* oklch */ color: oklch(38.6% 0.179 306.7);
Tailwind
colors: {
  custom: {
    50: '#905eae',
    500: '#5d158c',
    950: '#000000',
  },
}
SCSS
$custom: #5d158c;
$custom-light: #905eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d158c",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 276.303,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38576,
    "c": 0.17885,
    "h": 306.7
  },
  "luminance": 0.04757
}

Semantic roles & 50–950 ramp

primary
#5D158C
secondary
#71C03D
accent
#F13780
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D158C

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

Preview Lab → · Contrast checker → · Palette generator →

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