#5E197B#5E197B

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

Color values

HEX#5E197B
RGBrgb(94, 25, 123)
HSLhsl(282, 66%, 29%)
HSVhsv(282, 80%, 48%)
CMYKcmyk(23.6%, 79.7%, 0%, 51.8%)
CIE-LABlab(25.28, 46.02, -40.90)
CIE-LCHlch(25.28, 61.56, 318.37°)
OKLaboklab(37.65% 0.1093 -0.1156)
OKLCHoklch(37.65% 0.159 313.4)
XYZxyz(8.5382, 4.5053, 19.1549)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E197B #367B19
analogous
#2D197B #5E197B #7B1967
triadic
#5E197B #7B5E19 #197B5E
tetradic
#5E197B #7B2D19 #367B19 #19677B
square
#5E197B #7B2D19 #367B19 #19677B
split-complementary
#5E197B #677B19 #197B2D
monochromatic
#130519 #370F48 #5E197B #8523AE #A838D7

Accessibility & contrast

On white

11.05
#5E197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E197B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E197B#FFFFFF#000000##FFFFFF
##5E197B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#0E3D79
Tritanopia (blue-blind)
#5B3049
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e197b;
/* rgb */ color: rgb(94, 25, 123);
/* oklch */ color: oklch(37.6% 0.159 313.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ea2',
    500: '#5e197b',
    950: '#000000',
  },
}
SCSS
$custom: #5e197b;
$custom-light: #8f5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e197b",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 282.245,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37646,
    "c": 0.15909,
    "h": 313.4
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

primary
#5E197B
secondary
#61AF40
accent
#E93F71
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E197B

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

Preview Lab → · Contrast checker → · Palette generator →

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