#5E197E#5E197E

#5E197E is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.162 H 312.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5E197E
RGBrgb(94, 25, 126)
HSLhsl(281, 67%, 30%)
HSVhsv(281, 80%, 49%)
CMYKcmyk(25.4%, 80.2%, 0%, 50.6%)
CIE-LABlab(25.51, 46.67, -42.42)
CIE-LCHlch(25.51, 63.07, 317.73°)
OKLaboklab(37.88% 0.1087 -0.1201)
OKLCHoklch(37.88% 0.162 312.1)
XYZxyz(8.7289, 4.5816, 20.1591)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E197E #397E19
analogous
#2C197E #5E197E #7E196C
triadic
#5E197E #7E5E19 #197E5E
tetradic
#5E197E #7E2C19 #397E19 #196C7E
square
#5E197E #7E2C19 #397E19 #196C7E
split-complementary
#5E197E #6C7E19 #197E2C
monochromatic
#13051A #380F4B #5E197E #8423B1 #A63AD8

Accessibility & contrast

On white

10.96
#5E197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E197E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E197E#FFFFFF#000000##FFFFFF
##5E197E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#063E7C
Tritanopia (blue-blind)
#5A314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e197e;
/* rgb */ color: rgb(94, 25, 126);
/* oklch */ color: oklch(37.9% 0.162 312.1);
Tailwind
colors: {
  custom: {
    50: '#905fa4',
    500: '#5e197e',
    950: '#000000',
  },
}
SCSS
$custom: #5e197e;
$custom-light: #905fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e197e",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 280.99,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37882,
    "c": 0.16198,
    "h": 312.1
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#5E197E
secondary
#65B241
accent
#EA3E74
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E197E

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

Preview Lab → · Contrast checker → · Palette generator →

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