#5E1870#5E1870

#5E1870 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.150 H 318.4°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#5E1870
RGBrgb(94, 24, 112)
HSLhsl(288, 65%, 27%)
HSVhsv(288, 79%, 44%)
CMYKcmyk(16.1%, 78.6%, 0%, 56.1%)
CIE-LABlab(24.33, 44.06, -35.39)
CIE-LCHlch(24.33, 56.51, 321.23°)
OKLaboklab(36.72% 0.112 -0.0994)
OKLCHoklch(36.72% 0.15 318.4)
XYZxyz(7.8670, 4.2032, 15.7230)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1870 #2A7018
analogous
#321870 #5E1870 #701856
triadic
#5E1870 #705E18 #18705E
tetradic
#5E1870 #703218 #2A7018 #185670
square
#5E1870 #703218 #2A7018 #185670
split-complementary
#5E1870 #567018 #187032
monochromatic
#150519 #340D3E #5E1870 #8823A2 #B130D3

Accessibility & contrast

On white

11.41
#5E1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5E1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1870
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1870#FFFFFF#000000##FFFFFF
##5E18701.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#1D3C6E
Tritanopia (blue-blind)
#5E2A43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1870;
/* rgb */ color: rgb(94, 24, 112);
/* oklch */ color: oklch(36.7% 0.150 318.4);
Tailwind
colors: {
  custom: {
    50: '#8f5d9a',
    500: '#5e1870',
    950: '#000000',
  },
}
SCSS
$custom: #5e1870;
$custom-light: #8f5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1870",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 287.727,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36721,
    "c": 0.14975,
    "h": 318.4
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#5E1870
secondary
#53A53E
accent
#E84062
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1870

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

Preview Lab → · Contrast checker → · Palette generator →

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