#5E1A7B#5E1A7B

#5E1A7B is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.158 H 313.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#5E1A7B
RGBrgb(94, 26, 123)
HSLhsl(282, 65%, 29%)
HSVhsv(282, 79%, 48%)
CMYKcmyk(23.6%, 78.9%, 0%, 51.8%)
CIE-LABlab(25.41, 45.64, -40.68)
CIE-LCHlch(25.41, 61.14, 318.28°)
OKLaboklab(37.74% 0.1083 -0.115)
OKLCHoklch(37.74% 0.158 313.3)
XYZxyz(8.5600, 4.5488, 19.1621)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A7B #377B1A
analogous
#2E1A7B #5E1A7B #7B1A68
triadic
#5E1A7B #7B5E1A #1A7B5E
tetradic
#5E1A7B #7B2E1A #377B1A #1A687B
square
#5E1A7B #7B2E1A #377B1A #1A687B
split-complementary
#5E1A7B #687B1A #1A7B2E
monochromatic
#130519 #370F48 #5E1A7B #8525AE #A73AD5

Accessibility & contrast

On white

11.00
#5E1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1A7B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A7B#FFFFFF#000000##FFFFFF
##5E1A7B1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#0F3E79
Tritanopia (blue-blind)
#5B304A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1a7b;
/* rgb */ color: rgb(94, 26, 123);
/* oklch */ color: oklch(37.7% 0.158 313.3);
Tailwind
colors: {
  custom: {
    50: '#8f5fa2',
    500: '#5e1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a7b;
$custom-light: #8f5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a7b",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 282.062,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.158,
    "h": 313.3
  },
  "luminance": 0.04549
}

Semantic roles & 50–950 ramp

primary
#5E1A7B
secondary
#62AF42
accent
#E84072
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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