#5E198A#5E198A

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

Color values

HEX#5E198A
RGBrgb(94, 25, 138)
HSLhsl(277, 69%, 32%)
HSVhsv(277, 82%, 54%)
CMYKcmyk(31.9%, 81.9%, 0%, 45.9%)
CIE-LABlab(26.48, 49.36, -48.38)
CIE-LCHlch(26.48, 69.12, 315.57°)
OKLaboklab(38.87% 0.1058 -0.1376)
OKLCHoklch(38.87% 0.174 307.6)
XYZxyz(9.5502, 4.9101, 24.4845)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E198A #458A19
analogous
#26198A #5E198A #8A197E
triadic
#5E198A #8A5E19 #198A5E
tetradic
#5E198A #8A2619 #458A19 #197E8A
square
#5E198A #8A2619 #458A19 #197E8A
split-complementary
#5E198A #7E8A19 #198A26
monochromatic
#170622 #3B1056 #5E198A #8122BE #A041DD

Accessibility & contrast

On white

10.60
#5E198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E198A
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E198A#FFFFFF#000000##FFFFFF
##5E198A1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#573752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e198a;
/* rgb */ color: rgb(94, 25, 138);
/* oklch */ color: oklch(38.9% 0.174 307.6);
Tailwind
colors: {
  custom: {
    50: '#915fad',
    500: '#5e198a',
    950: '#000000',
  },
}
SCSS
$custom: #5e198a;
$custom-light: #915fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e198a",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 276.637,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.17361,
    "h": 307.6
  },
  "luminance": 0.0491
}

Semantic roles & 50–950 ramp

primary
#5E198A
secondary
#72BD42
accent
#EC3C80
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E198A

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

Preview Lab → · Contrast checker → · Palette generator →

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