#5E188B#5E188B

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

Color values

HEX#5E188B
RGBrgb(94, 24, 139)
HSLhsl(277, 71%, 32%)
HSVhsv(277, 83%, 55%)
CMYKcmyk(32.4%, 82.7%, 0%, 45.5%)
CIE-LABlab(26.44, 49.94, -49.07)
CIE-LCHlch(26.44, 70.01, 315.50°)
OKLaboklab(38.87% 0.1064 -0.1396)
OKLCHoklch(38.87% 0.176 307.3)
XYZxyz(9.6019, 4.8972, 24.8605)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E188B #458B18
analogous
#25188B #5E188B #8B187F
triadic
#5E188B #8B5E18 #188B5E
tetradic
#5E188B #8B2518 #458B18 #187F8B
square
#5E188B #8B2518 #458B18 #187F8B
split-complementary
#5E188B #7F8B18 #188B25
monochromatic
#170623 #3B0F57 #5E188B #8121BF #A03FDE

Accessibility & contrast

On white

10.61
#5E188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E188B
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E188B#FFFFFF#000000##FFFFFF
##5E188B1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#563752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e188b;
/* rgb */ color: rgb(94, 24, 139);
/* oklch */ color: oklch(38.9% 0.176 307.3);
Tailwind
colors: {
  custom: {
    50: '#915fae',
    500: '#5e188b',
    950: '#000000',
  },
}
SCSS
$custom: #5e188b;
$custom-light: #915fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e188b",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 276.522,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.17552,
    "h": 307.3
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#5E188B
secondary
#72BE40
accent
#ED3A80
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E188B

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

Preview Lab → · Contrast checker → · Palette generator →

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