#5E188D#5E188D

#5E188D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.177 H 306.6°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5E188D
RGBrgb(94, 24, 141)
HSLhsl(276, 71%, 32%)
HSVhsv(276, 83%, 55%)
CMYKcmyk(33.3%, 83%, 0%, 44.7%)
CIE-LABlab(26.61, 50.39, -50.04)
CIE-LCHlch(26.61, 71.01, 315.20°)
OKLaboklab(39.04% 0.1058 -0.1425)
OKLCHoklch(39.04% 0.177 306.6)
XYZxyz(9.7494, 4.9561, 25.6372)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E188D #478D18
analogous
#23188D #5E188D #8D1882
triadic
#5E188D #8D5E18 #188D5E
tetradic
#5E188D #8D2318 #478D18 #18828D
square
#5E188D #8D2318 #478D18 #18828D
split-complementary
#5E188D #828D18 #188D23
monochromatic
#180624 #3B0F59 #5E188D #8121C1 #9F41DF

Accessibility & contrast

On white

10.55
#5E188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5E188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E188D
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E188D#FFFFFF#000000##FFFFFF
##5E188D1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e188d;
/* rgb */ color: rgb(94, 24, 141);
/* oklch */ color: oklch(39.0% 0.177 306.6);
Tailwind
colors: {
  custom: {
    50: '#915faf',
    500: '#5e188d',
    950: '#000000',
  },
}
SCSS
$custom: #5e188d;
$custom-light: #915faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e188d",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 275.897,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39036,
    "c": 0.17745,
    "h": 306.6
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#5E188D
secondary
#74BF42
accent
#EE3A82
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E188D

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

Preview Lab → · Contrast checker → · Palette generator →

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