#5E2159#5E2159

#5E2159 is a dark, moderate purple. Relative luminance 0.042; OKLCH L 36.2% C 0.116 H 331.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5E2159
RGBrgb(94, 33, 89)
HSLhsl(305, 48%, 25%)
HSVhsv(305, 65%, 37%)
CMYKcmyk(0%, 64.9%, 5.3%, 63.1%)
CIE-LABlab(24.29, 35.56, -20.45)
CIE-LCHlch(24.29, 41.02, 330.10°)
OKLaboklab(36.23% 0.1012 -0.0561)
OKLCHoklch(36.23% 0.116 331)
XYZxyz(6.9631, 4.1892, 9.8911)
Luminance0.0419 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2159 #215E26
analogous
#45215E #5E2159 #5E213B
triadic
#5E2159 #595E21 #21595E
tetradic
#5E2159 #5E4521 #215E26 #213B5E
square
#5E2159 #5E4521 #215E26 #213B5E
split-complementary
#5E2159 #3B5E21 #215E45
monochromatic
#170815 #31112E #5E2159 #8B3184 #B941AF

Accessibility & contrast

On white

11.43
#5E2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5E2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2159
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2159#FFFFFF#000000##FFFFFF
##5E21591.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D345B
Deuteranopia (green-blind)
#323D57
Tritanopia (blue-blind)
#622739
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e2159;
/* rgb */ color: rgb(94, 33, 89);
/* oklch */ color: oklch(36.2% 0.116 331.0);
Tailwind
colors: {
  custom: {
    50: '#8e6188',
    500: '#5e2159',
    950: '#000000',
  },
}
SCSS
$custom: #5e2159;
$custom-light: #8e6188;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2159",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 304.918,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36226,
    "c": 0.11567,
    "h": 331
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#5E2159
secondary
#49924F
accent
#D85B50
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #5E2159

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

Preview Lab → · Contrast checker → · Palette generator →

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