#5E2A72#5E2A72

#5E2A72 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.0% C 0.127 H 315.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5E2A72
RGBrgb(94, 42, 114)
HSLhsl(283, 46%, 31%)
HSVhsv(283, 63%, 45%)
CMYKcmyk(17.5%, 63.2%, 0%, 55.3%)
CIE-LABlab(27.44, 36.20, -31.70)
CIE-LCHlch(27.44, 48.11, 318.79°)
OKLaboklab(39% 0.0903 -0.0888)
OKLCHoklch(39% 0.127 315.5)
XYZxyz(8.4808, 5.2508, 16.4831)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A72 #3E722A
analogous
#3A2A72 #5E2A72 #722A62
triadic
#5E2A72 #725E2A #2A725E
tetradic
#5E2A72 #723A2A #3E722A #2A6272
square
#5E2A72 #723A2A #3E722A #2A6272
split-complementary
#5E2A72 #62722A #2A723A
monochromatic
#140919 #391A45 #5E2A72 #833A9F #A356C1

Accessibility & contrast

On white

10.24
#5E2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2A72
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A72#FFFFFF#000000##FFFFFF
##5E2A721.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E74
Deuteranopia (green-blind)
#2A4270
Tritanopia (blue-blind)
#5D374A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2a72;
/* rgb */ color: rgb(94, 42, 114);
/* oklch */ color: oklch(39.0% 0.127 315.5);
Tailwind
colors: {
  custom: {
    50: '#8e679b',
    500: '#5e2a72',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a72;
$custom-light: #8e679b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a72",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 283.333,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38995,
    "c": 0.12665,
    "h": 315.5
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#5E2A72
secondary
#6AA454
accent
#D65277
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5E2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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