#5E2158#5E2158

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

Color values

HEX#5E2158
RGBrgb(94, 33, 88)
HSLhsl(306, 48%, 25%)
HSVhsv(306, 65%, 37%)
CMYKcmyk(0%, 64.9%, 6.4%, 63.1%)
CIE-LABlab(24.23, 35.37, -19.87)
CIE-LCHlch(24.23, 40.57, 330.68°)
OKLaboklab(36.17% 0.101 -0.0544)
OKLCHoklch(36.17% 0.115 331.7)
XYZxyz(6.9214, 4.1725, 9.6714)
Luminance0.0417 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2158 #215E27
analogous
#46215E #5E2158 #5E2139
triadic
#5E2158 #585E21 #21585E
tetradic
#5E2158 #5E4621 #215E27 #21395E
square
#5E2158 #5E4621 #215E27 #21395E
split-complementary
#5E2158 #395E21 #215E46
monochromatic
#170815 #31112E #5E2158 #8B3182 #B941AD

Accessibility & contrast

On white

11.45
#5E2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5E2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2158
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2158#FFFFFF#000000##FFFFFF
##5E21581.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#323D56
Tritanopia (blue-blind)
#622639
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e2158;
/* rgb */ color: rgb(94, 33, 88);
/* oklch */ color: oklch(36.2% 0.115 331.7);
Tailwind
colors: {
  custom: {
    50: '#8e6187',
    500: '#5e2158',
    950: '#000000',
  },
}
SCSS
$custom: #5e2158;
$custom-light: #8e6187;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2158",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 305.902,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3617,
    "c": 0.11476,
    "h": 331.7
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#5E2158
secondary
#499250
accent
#D85E50
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #5E2158

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

Preview Lab → · Contrast checker → · Palette generator →

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