#5E197D#5E197D

#5E197D is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.161 H 312.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5E197D
RGBrgb(94, 25, 125)
HSLhsl(281, 67%, 29%)
HSVhsv(281, 80%, 49%)
CMYKcmyk(24.8%, 80%, 0%, 51%)
CIE-LABlab(25.43, 46.45, -41.92)
CIE-LCHlch(25.43, 62.57, 317.94°)
OKLaboklab(37.8% 0.1089 -0.1186)
OKLCHoklch(37.8% 0.161 312.5)
XYZxyz(8.6647, 4.5559, 19.8210)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E197D #387D19
analogous
#2C197D #5E197D #7D196A
triadic
#5E197D #7D5E19 #197D5E
tetradic
#5E197D #7D2C19 #387D19 #196A7D
square
#5E197D #7D2C19 #387D19 #196A7D
split-complementary
#5E197D #6A7D19 #197D2C
monochromatic
#13051A #380F4A #5E197D #8423B0 #A639D7

Accessibility & contrast

On white

10.99
#5E197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5E197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E197D
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E197D#FFFFFF#000000##FFFFFF
##5E197D1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#093E7B
Tritanopia (blue-blind)
#5A314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e197d;
/* rgb */ color: rgb(94, 25, 125);
/* oklch */ color: oklch(37.8% 0.161 312.5);
Tailwind
colors: {
  custom: {
    50: '#905ea3',
    500: '#5e197d',
    950: '#000000',
  },
}
SCSS
$custom: #5e197d;
$custom-light: #905ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e197d",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 281.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37803,
    "c": 0.16101,
    "h": 312.5
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#5E197D
secondary
#63B140
accent
#EA3E73
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E197D

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

Preview Lab → · Contrast checker → · Palette generator →

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