#5D158E#5D158E

#5D158E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.181 H 306.0°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5D158E
RGBrgb(93, 21, 142)
HSLhsl(276, 74%, 32%)
HSVhsv(276, 85%, 56%)
CMYKcmyk(34.5%, 85.2%, 0%, 44.3%)
CIE-LABlab(26.21, 51.45, -51.32)
CIE-LCHlch(26.21, 72.67, 315.07°)
OKLaboklab(38.75% 0.1062 -0.1463)
OKLCHoklch(38.75% 0.181 306)
XYZxyz(9.6638, 4.8166, 26.0065)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D158E #468E15
analogous
#20158E #5D158E #8E1583
triadic
#5D158E #8E5D15 #158E5D
tetradic
#5D158E #8E2015 #468E15 #15838E
square
#5D158E #8E2015 #468E15 #15838E
split-complementary
#5D158E #838E15 #158E20
monochromatic
#170523 #3A0D59 #5D158E #801DC3 #9F3BE2

Accessibility & contrast

On white

10.70
#5D158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D158E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D158E#FFFFFF#000000##FFFFFF
##5D158E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#543754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d158e;
/* rgb */ color: rgb(93, 21, 142);
/* oklch */ color: oklch(38.8% 0.181 306.0);
Tailwind
colors: {
  custom: {
    50: '#905eb0',
    500: '#5d158e',
    950: '#000000',
  },
}
SCSS
$custom: #5d158e;
$custom-light: #905eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d158e",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 275.702,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38751,
    "c": 0.18074,
    "h": 306
  },
  "luminance": 0.04816
}

Semantic roles & 50–950 ramp

primary
#5D158E
secondary
#73C23D
accent
#F13782
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D158E

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

Preview Lab → · Contrast checker → · Palette generator →

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