#5E197A#5E197A

#5E197A is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.158 H 313.8°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5E197A
RGBrgb(94, 25, 122)
HSLhsl(283, 66%, 29%)
HSVhsv(283, 80%, 48%)
CMYKcmyk(23%, 79.5%, 0%, 52.2%)
CIE-LABlab(25.20, 45.80, -40.39)
CIE-LCHlch(25.20, 61.06, 318.59°)
OKLaboklab(37.57% 0.1095 -0.1141)
OKLCHoklch(37.57% 0.158 313.8)
XYZxyz(8.4760, 4.4804, 18.8269)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E197A #357A19
analogous
#2E197A #5E197A #7A1966
triadic
#5E197A #7A5E19 #197A5E
tetradic
#5E197A #7A2E19 #357A19 #19667A
square
#5E197A #7A2E19 #357A19 #19667A
split-complementary
#5E197A #667A19 #197A2E
monochromatic
#140519 #370F47 #5E197A #8523AD #A837D6

Accessibility & contrast

On white

11.08
#5E197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5E197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E197A
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E197A#FFFFFF#000000##FFFFFF
##5E197A1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#103D78
Tritanopia (blue-blind)
#5B3049
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e197a;
/* rgb */ color: rgb(94, 25, 122);
/* oklch */ color: oklch(37.6% 0.158 313.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea1',
    500: '#5e197a',
    950: '#000000',
  },
}
SCSS
$custom: #5e197a;
$custom-light: #8f5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e197a",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 282.68,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37568,
    "c": 0.15814,
    "h": 313.8
  },
  "luminance": 0.0448
}

Semantic roles & 50–950 ramp

primary
#5E197A
secondary
#60AF40
accent
#E93F70
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E197A

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

Preview Lab → · Contrast checker → · Palette generator →

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