#5E189F#5E189F

#5E189F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.6% C 0.195 H 300.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5E189F
RGBrgb(94, 24, 159)
HSLhsl(271, 74%, 36%)
HSVhsv(271, 85%, 62%)
CMYKcmyk(40.9%, 84.9%, 0%, 37.6%)
CIE-LABlab(28.21, 54.56, -58.49)
CIE-LCHlch(28.21, 79.99, 313.01°)
OKLaboklab(40.64% 0.1 -0.1673)
OKLCHoklch(40.64% 0.195 300.9)
XYZxyz(11.1992, 5.5361, 33.2727)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E189F #599F18
analogous
#1A189F #5E189F #9F189C
triadic
#5E189F #9F5E18 #189F5E
tetradic
#5E189F #9F1A18 #599F18 #189C9F
square
#5E189F #9F1A18 #599F18 #189C9F
split-complementary
#5E189F #9C9F18 #189F1A
monochromatic
#1F0835 #3F106A #5E189F #7D20D4 #9B4DE4

Accessibility & contrast

On white

9.97
#5E189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E189F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E189F#FFFFFF#000000##FFFFFF
##5E189F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#4F405E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e189f;
/* rgb */ color: rgb(94, 24, 159);
/* oklch */ color: oklch(40.6% 0.195 300.9);
Tailwind
colors: {
  custom: {
    50: '#9360bc',
    500: '#5e189f',
    950: '#000000',
  },
}
SCSS
$custom: #5e189f;
$custom-light: #9360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e189f",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 271.111,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40638,
    "c": 0.19489,
    "h": 300.9
  },
  "luminance": 0.05536
}

Semantic roles & 50–950 ramp

primary
#5E189F
secondary
#87C64D
accent
#F03790
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E189F

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

Preview Lab → · Contrast checker → · Palette generator →

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