#5E189E#5E189E

#5E189E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.194 H 301.2°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5E189E
RGBrgb(94, 24, 158)
HSLhsl(271, 74%, 36%)
HSVhsv(271, 85%, 62%)
CMYKcmyk(40.5%, 84.8%, 0%, 38%)
CIE-LABlab(28.12, 54.33, -58.03)
CIE-LCHlch(28.12, 79.49, 313.11°)
OKLaboklab(40.55% 0.1004 -0.1659)
OKLCHoklch(40.55% 0.194 301.2)
XYZxyz(11.1128, 5.5015, 32.8175)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E189E #589E18
analogous
#1B189E #5E189E #9E189B
triadic
#5E189E #9E5E18 #189E5E
tetradic
#5E189E #9E1B18 #589E18 #189B9E
square
#5E189E #9E1B18 #589E18 #189B9E
split-complementary
#5E189E #9B9E18 #189E1B
monochromatic
#1F0834 #3E1069 #5E189E #7E20D3 #9C4DE4

Accessibility & contrast

On white

10.00
#5E189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5E189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E189E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E189E#FFFFFF#000000##FFFFFF
##5E189E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4F3F5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e189e;
/* rgb */ color: rgb(94, 24, 158);
/* oklch */ color: oklch(40.5% 0.194 301.2);
Tailwind
colors: {
  custom: {
    50: '#9360bc',
    500: '#5e189e',
    950: '#000000',
  },
}
SCSS
$custom: #5e189e;
$custom-light: #9360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e189e",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 271.343,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40546,
    "c": 0.19392,
    "h": 301.2
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#5E189E
secondary
#86C64C
accent
#F03890
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E189E

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

Preview Lab → · Contrast checker → · Palette generator →

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