#5E197C#5E197C

#5E197C is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.160 H 313.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5E197C
RGBrgb(94, 25, 124)
HSLhsl(282, 66%, 29%)
HSVhsv(282, 80%, 49%)
CMYKcmyk(24.2%, 79.8%, 0%, 51.4%)
CIE-LABlab(25.35, 46.24, -41.41)
CIE-LCHlch(25.35, 62.07, 318.15°)
OKLaboklab(37.72% 0.1091 -0.1171)
OKLCHoklch(37.72% 0.16 313)
XYZxyz(8.6012, 4.5304, 19.4863)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E197C #377C19
analogous
#2D197C #5E197C #7C1969
triadic
#5E197C #7C5E19 #197C5E
tetradic
#5E197C #7C2D19 #377C19 #19697C
square
#5E197C #7C2D19 #377C19 #19697C
split-complementary
#5E197C #697C19 #197C2D
monochromatic
#130519 #370F49 #5E197C #8523AF #A738D7

Accessibility & contrast

On white

11.02
#5E197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E197C
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E197C#FFFFFF#000000##FFFFFF
##5E197C1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#0C3E7A
Tritanopia (blue-blind)
#5B304A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e197c;
/* rgb */ color: rgb(94, 25, 124);
/* oklch */ color: oklch(37.7% 0.160 313.0);
Tailwind
colors: {
  custom: {
    50: '#905ea3',
    500: '#5e197c',
    950: '#000000',
  },
}
SCSS
$custom: #5e197c;
$custom-light: #905ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e197c",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 281.818,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37725,
    "c": 0.16006,
    "h": 313
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#5E197C
secondary
#62B040
accent
#E93E72
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E197C

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

Preview Lab → · Contrast checker → · Palette generator →

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