#5E1876#5E1876

#5E1876 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.155 H 315.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#5E1876
RGBrgb(94, 24, 118)
HSLhsl(285, 66%, 28%)
HSVhsv(285, 80%, 46%)
CMYKcmyk(20.3%, 79.7%, 0%, 53.7%)
CIE-LABlab(24.77, 45.31, -38.53)
CIE-LCHlch(24.77, 59.48, 319.62°)
OKLaboklab(37.17% 0.1111 -0.1087)
OKLCHoklch(37.17% 0.155 315.6)
XYZxyz(8.2122, 4.3413, 17.5414)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1876 #307618
analogous
#2F1876 #5E1876 #76185F
triadic
#5E1876 #765E18 #18765E
tetradic
#5E1876 #762F18 #307618 #185F76
square
#5E1876 #762F18 #307618 #185F76
split-complementary
#5E1876 #5F7618 #18762F
monochromatic
#140519 #350E43 #5E1876 #8722A9 #AC33D5

Accessibility & contrast

On white

11.24
#5E1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1876
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1876#FFFFFF#000000##FFFFFF
##5E18761.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#153D74
Tritanopia (blue-blind)
#5C2D46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1876;
/* rgb */ color: rgb(94, 24, 118);
/* oklch */ color: oklch(37.2% 0.155 315.6);
Tailwind
colors: {
  custom: {
    50: '#8f5e9e',
    500: '#5e1876',
    950: '#000000',
  },
}
SCSS
$custom: #5e1876;
$custom-light: #8f5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1876",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 284.681,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37169,
    "c": 0.15541,
    "h": 315.6
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#5E1876
secondary
#5AAB3F
accent
#E93F6A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1876

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

Preview Lab → · Contrast checker → · Palette generator →

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