#5E1A7C#5E1A7C

#5E1A7C is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.159 H 312.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#5E1A7C
RGBrgb(94, 26, 124)
HSLhsl(282, 65%, 29%)
HSVhsv(282, 79%, 49%)
CMYKcmyk(24.2%, 79%, 0%, 51.4%)
CIE-LABlab(25.48, 45.85, -41.20)
CIE-LCHlch(25.48, 61.64, 318.06°)
OKLaboklab(37.82% 0.1082 -0.1165)
OKLCHoklch(37.82% 0.159 312.9)
XYZxyz(8.6229, 4.5740, 19.4935)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A7C #387C1A
analogous
#2D1A7C #5E1A7C #7C1A69
triadic
#5E1A7C #7C5E1A #1A7C5E
tetradic
#5E1A7C #7C2D1A #387C1A #1A697C
square
#5E1A7C #7C2D1A #387C1A #1A697C
split-complementary
#5E1A7C #697C1A #1A7C2D
monochromatic
#130519 #380F49 #5E1A7C #8425AF #A63BD6

Accessibility & contrast

On white

10.97
#5E1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5E1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A7C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A7C#FFFFFF#000000##FFFFFF
##5E1A7C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#0D3E7A
Tritanopia (blue-blind)
#5B314A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1a7c;
/* rgb */ color: rgb(94, 26, 124);
/* oklch */ color: oklch(37.8% 0.159 312.9);
Tailwind
colors: {
  custom: {
    50: '#8f5fa3',
    500: '#5e1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a7c;
$custom-light: #8f5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a7c",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 281.633,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37818,
    "c": 0.15897,
    "h": 312.9
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#5E1A7C
secondary
#63B042
accent
#E84073
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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