#5E1A72#5E1A72

#5E1A72 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.149 H 317.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5E1A72
RGBrgb(94, 26, 114)
HSLhsl(286, 63%, 27%)
HSVhsv(286, 77%, 45%)
CMYKcmyk(17.5%, 77.2%, 0%, 55.3%)
CIE-LABlab(24.75, 43.70, -36.01)
CIE-LCHlch(24.75, 56.63, 320.51°)
OKLaboklab(37.06% 0.1097 -0.1013)
OKLCHoklch(37.06% 0.149 317.3)
XYZxyz(8.0223, 4.3337, 16.3302)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A72 #2E721A
analogous
#321A72 #5E1A72 #721A5A
triadic
#5E1A72 #725E1A #1A725E
tetradic
#5E1A72 #72321A #2E721A #1A5A72
square
#5E1A72 #72321A #2E721A #1A5A72
split-complementary
#5E1A72 #5A721A #1A7232
monochromatic
#150619 #350F40 #5E1A72 #8725A4 #AE35D1

Accessibility & contrast

On white

11.25
#5E1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A72
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A72#FFFFFF#000000##FFFFFF
##5E1A721.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#1C3D70
Tritanopia (blue-blind)
#5D2C45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1a72;
/* rgb */ color: rgb(94, 26, 114);
/* oklch */ color: oklch(37.1% 0.149 317.3);
Tailwind
colors: {
  custom: {
    50: '#8f5e9b',
    500: '#5e1a72',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a72;
$custom-light: #8f5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a72",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 286.364,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3706,
    "c": 0.14931,
    "h": 317.3
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#5E1A72
secondary
#58A741
accent
#E64267
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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