#5D188D#5D188D

#5D188D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.177 H 306.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5D188D
RGBrgb(93, 24, 141)
HSLhsl(275, 71%, 32%)
HSVhsv(275, 83%, 55%)
CMYKcmyk(34%, 83%, 0%, 44.7%)
CIE-LABlab(26.46, 50.23, -50.29)
CIE-LCHlch(26.46, 71.07, 314.96°)
OKLaboklab(38.9% 0.1043 -0.1432)
OKLCHoklch(38.9% 0.177 306.1)
XYZxyz(9.6475, 4.9036, 25.6324)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D188D #488D18
analogous
#23188D #5D188D #8D1882
triadic
#5D188D #8D5D18 #188D5D
tetradic
#5D188D #8D2318 #488D18 #18828D
square
#5D188D #8D2318 #488D18 #18828D
split-complementary
#5D188D #828D18 #188D23
monochromatic
#180624 #3B0F59 #5D188D #7F21C1 #9E41DF

Accessibility & contrast

On white

10.60
#5D188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5D188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D188D
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D188D#FFFFFF#000000##FFFFFF
##5D188D1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#543854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d188d;
/* rgb */ color: rgb(93, 24, 141);
/* oklch */ color: oklch(38.9% 0.177 306.1);
Tailwind
colors: {
  custom: {
    50: '#905faf',
    500: '#5d188d',
    950: '#000000',
  },
}
SCSS
$custom: #5d188d;
$custom-light: #905faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d188d",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 275.385,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38899,
    "c": 0.17721,
    "h": 306.1
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#5D188D
secondary
#75BF42
accent
#EE3A84
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D188D

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

Preview Lab → · Contrast checker → · Palette generator →

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