#5E1A74#5E1A74

#5E1A74 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.2% C 0.151 H 316.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5E1A74
RGBrgb(94, 26, 116)
HSLhsl(285, 63%, 28%)
HSVhsv(285, 78%, 45%)
CMYKcmyk(19%, 77.6%, 0%, 54.5%)
CIE-LABlab(24.89, 44.12, -37.06)
CIE-LCHlch(24.89, 57.62, 319.97°)
OKLaboklab(37.21% 0.1094 -0.1044)
OKLCHoklch(37.21% 0.151 316.4)
XYZxyz(8.1374, 4.3798, 16.9363)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A74 #30741A
analogous
#311A74 #5E1A74 #741A5D
triadic
#5E1A74 #745E1A #1A745E
tetradic
#5E1A74 #74311A #30741A #1A5D74
square
#5E1A74 #74311A #30741A #1A5D74
split-complementary
#5E1A74 #5D741A #1A7431
monochromatic
#140619 #350F42 #5E1A74 #8725A6 #AC36D2

Accessibility & contrast

On white

11.20
#5E1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A74
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A74#FFFFFF#000000##FFFFFF
##5E1A741.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#1A3D72
Tritanopia (blue-blind)
#5D2D46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1a74;
/* rgb */ color: rgb(94, 26, 116);
/* oklch */ color: oklch(37.2% 0.151 316.4);
Tailwind
colors: {
  custom: {
    50: '#8f5e9d',
    500: '#5e1a74',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a74;
$custom-light: #8f5e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a74",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 285.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37208,
    "c": 0.15123,
    "h": 316.4
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#5E1A74
secondary
#5AA941
accent
#E6416A
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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