#5E2A71#5E2A71

#5E2A71 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 38.9% C 0.126 H 316.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5E2A71
RGBrgb(94, 42, 113)
HSLhsl(284, 46%, 30%)
HSVhsv(284, 63%, 44%)
CMYKcmyk(16.8%, 62.8%, 0%, 55.7%)
CIE-LABlab(27.38, 35.97, -31.16)
CIE-LCHlch(27.38, 47.59, 319.10°)
OKLaboklab(38.93% 0.0903 -0.0872)
OKLCHoklch(38.93% 0.126 316)
XYZxyz(8.4242, 5.2282, 16.1850)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A71 #3D712A
analogous
#3B2A71 #5E2A71 #712A60
triadic
#5E2A71 #715E2A #2A715E
tetradic
#5E2A71 #713B2A #3D712A #2A6071
square
#5E2A71 #713B2A #3D712A #2A6071
split-complementary
#5E2A71 #60712A #2A713B
monochromatic
#140918 #391944 #5E2A71 #833B9E #A355C0

Accessibility & contrast

On white

10.27
#5E2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2A71
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A71#FFFFFF#000000##FFFFFF
##5E2A711.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D73
Deuteranopia (green-blind)
#2A426F
Tritanopia (blue-blind)
#5D3649
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2a71;
/* rgb */ color: rgb(94, 42, 113);
/* oklch */ color: oklch(38.9% 0.126 316.0);
Tailwind
colors: {
  custom: {
    50: '#8e679a',
    500: '#5e2a71',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a71;
$custom-light: #8e679a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a71",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 283.944,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38929,
    "c": 0.12554,
    "h": 316
  },
  "luminance": 0.05228
}

Semantic roles & 50–950 ramp

primary
#5E2A71
secondary
#69A354
accent
#D55275
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5E2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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