#5E188E#5E188E

#5E188E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.178 H 306.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5E188E
RGBrgb(94, 24, 142)
HSLhsl(276, 71%, 33%)
HSVhsv(276, 83%, 56%)
CMYKcmyk(33.8%, 83.1%, 0%, 44.3%)
CIE-LABlab(26.69, 50.62, -50.52)
CIE-LCHlch(26.69, 71.52, 315.06°)
OKLaboklab(39.12% 0.1055 -0.1439)
OKLCHoklch(39.12% 0.178 306.3)
XYZxyz(9.8241, 4.9860, 26.0308)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E188E #488E18
analogous
#23188E #5E188E #8E1883
triadic
#5E188E #8E5E18 #188E5E
tetradic
#5E188E #8E2318 #488E18 #18838E
square
#5E188E #8E2318 #488E18 #18838E
split-complementary
#5E188E #838E18 #188E23
monochromatic
#190625 #3B0F5A #5E188E #8121C2 #9F41DF

Accessibility & contrast

On white

10.51
#5E188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E188E
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E188E#FFFFFF#000000##FFFFFF
##5E188E1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#553854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e188e;
/* rgb */ color: rgb(94, 24, 142);
/* oklch */ color: oklch(39.1% 0.178 306.3);
Tailwind
colors: {
  custom: {
    50: '#915fb0',
    500: '#5e188e',
    950: '#000000',
  },
}
SCSS
$custom: #5e188e;
$custom-light: #915fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e188e",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 275.593,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.17841,
    "h": 306.3
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#5E188E
secondary
#75C042
accent
#EE3A83
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E188E

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

Preview Lab → · Contrast checker → · Palette generator →

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