#5E1874#5E1874

#5E1874 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.154 H 316.5°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#5E1874
RGBrgb(94, 24, 116)
HSLhsl(286, 66%, 27%)
HSVhsv(286, 79%, 45%)
CMYKcmyk(19%, 79.3%, 0%, 54.5%)
CIE-LABlab(24.62, 44.89, -37.49)
CIE-LCHlch(24.62, 58.49, 320.13°)
OKLaboklab(37.02% 0.1114 -0.1056)
OKLCHoklch(37.02% 0.154 316.5)
XYZxyz(8.0946, 4.2942, 16.9221)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1874 #2E7418
analogous
#301874 #5E1874 #74185C
triadic
#5E1874 #745E18 #18745E
tetradic
#5E1874 #743018 #2E7418 #185C74
square
#5E1874 #743018 #2E7418 #185C74
split-complementary
#5E1874 #5C7418 #187430
monochromatic
#150519 #350E41 #5E1874 #8722A7 #AE32D5

Accessibility & contrast

On white

11.30
#5E1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1874
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1874#FFFFFF#000000##FFFFFF
##5E18741.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#183C72
Tritanopia (blue-blind)
#5D2C45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1874;
/* rgb */ color: rgb(94, 24, 116);
/* oklch */ color: oklch(37.0% 0.154 316.5);
Tailwind
colors: {
  custom: {
    50: '#8f5e9d',
    500: '#5e1874',
    950: '#000000',
  },
}
SCSS
$custom: #5e1874;
$custom-light: #8f5e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1874",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 285.652,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37018,
    "c": 0.15351,
    "h": 316.5
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#5E1874
secondary
#58A93F
accent
#E93F68
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1874

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

Preview Lab → · Contrast checker → · Palette generator →

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