#5D158F#5D158F

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

Color values

HEX#5D158F
RGBrgb(93, 21, 143)
HSLhsl(275, 74%, 32%)
HSVhsv(275, 85%, 56%)
CMYKcmyk(35%, 85.3%, 0%, 43.9%)
CIE-LABlab(26.29, 51.67, -51.80)
CIE-LCHlch(26.29, 73.17, 314.93°)
OKLaboklab(38.84% 0.1059 -0.1477)
OKLCHoklch(38.84% 0.182 305.6)
XYZxyz(9.7392, 4.8467, 26.4037)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D158F #478F15
analogous
#20158F #5D158F #8F1584
triadic
#5D158F #8F5D15 #158F5D
tetradic
#5D158F #8F2015 #478F15 #15848F
square
#5D158F #8F2015 #478F15 #15848F
split-complementary
#5D158F #848F15 #158F20
monochromatic
#180524 #3A0D5A #5D158F #801DC4 #9E3CE2

Accessibility & contrast

On white

10.66
#5D158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D158F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D158F#FFFFFF#000000##FFFFFF
##5D158F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#543854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d158f;
/* rgb */ color: rgb(93, 21, 143);
/* oklch */ color: oklch(38.8% 0.182 305.6);
Tailwind
colors: {
  custom: {
    50: '#915eb1',
    500: '#5d158f',
    950: '#000000',
  },
}
SCSS
$custom: #5d158f;
$custom-light: #915eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d158f",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 275.41,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38839,
    "c": 0.18169,
    "h": 305.6
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

primary
#5D158F
secondary
#74C23E
accent
#F13783
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D158F

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

Preview Lab → · Contrast checker → · Palette generator →

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