#5D188A#5D188A

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

Color values

HEX#5D188A
RGBrgb(93, 24, 138)
HSLhsl(276, 70%, 32%)
HSVhsv(276, 83%, 54%)
CMYKcmyk(32.6%, 82.6%, 0%, 45.9%)
CIE-LABlab(26.20, 49.54, -48.84)
CIE-LCHlch(26.20, 69.57, 315.41°)
OKLaboklab(38.64% 0.1052 -0.139)
OKLCHoklch(38.64% 0.174 307.1)
XYZxyz(9.4273, 4.8155, 24.4727)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D188A #458A18
analogous
#24188A #5D188A #8A187E
triadic
#5D188A #8A5D18 #188A5D
tetradic
#5D188A #8A2418 #458A18 #187E8A
square
#5D188A #8A2418 #458A18 #187E8A
split-complementary
#5D188A #7E8A18 #188A24
monochromatic
#170622 #3A0F56 #5D188A #8021BE #9F3FDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D188A#FFFFFF#000000##FFFFFF
##5D188A1.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)
#003C8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#553652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d188a;
/* rgb */ color: rgb(93, 24, 138);
/* oklch */ color: oklch(38.6% 0.174 307.1);
Tailwind
colors: {
  custom: {
    50: '#905fad',
    500: '#5d188a',
    950: '#000000',
  },
}
SCSS
$custom: #5d188a;
$custom-light: #905fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d188a",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 276.316,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.1743,
    "h": 307.1
  },
  "luminance": 0.04815
}

Semantic roles & 50–950 ramp

primary
#5D188A
secondary
#72BD40
accent
#ED3B81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D188A

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

Preview Lab → · Contrast checker → · Palette generator →

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