#5E188F#5E188F

#5E188F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.179 H 305.9°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5E188F
RGBrgb(94, 24, 143)
HSLhsl(275, 71%, 33%)
HSVhsv(275, 83%, 56%)
CMYKcmyk(34.3%, 83.2%, 0%, 43.9%)
CIE-LABlab(26.78, 50.85, -51.00)
CIE-LCHlch(26.78, 72.02, 314.92°)
OKLaboklab(39.21% 0.1052 -0.1453)
OKLCHoklch(39.21% 0.179 305.9)
XYZxyz(9.8995, 5.0162, 26.4280)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E188F #498F18
analogous
#22188F #5E188F #8F1884
triadic
#5E188F #8F5E18 #188F5E
tetradic
#5E188F #8F2218 #498F18 #18848F
square
#5E188F #8F2218 #498F18 #18848F
split-complementary
#5E188F #848F18 #188F22
monochromatic
#190626 #3C0F5B #5E188F #8021C3 #9F42DF

Accessibility & contrast

On white

10.48
#5E188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E188F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E188F#FFFFFF#000000##FFFFFF
##5E188F1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#553955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e188f;
/* rgb */ color: rgb(94, 24, 143);
/* oklch */ color: oklch(39.2% 0.179 305.9);
Tailwind
colors: {
  custom: {
    50: '#915fb1',
    500: '#5e188f',
    950: '#000000',
  },
}
SCSS
$custom: #5e188f;
$custom-light: #915fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e188f",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 275.294,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39208,
    "c": 0.17938,
    "h": 305.9
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#5E188F
secondary
#76C043
accent
#EE3A84
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E188F

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

Preview Lab → · Contrast checker → · Palette generator →

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