#5E2157#5E2157

#5E2157 is a dark, moderate purple. Relative luminance 0.042; OKLCH L 36.1% C 0.114 H 332.4°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5E2157
RGBrgb(94, 33, 87)
HSLhsl(307, 48%, 25%)
HSVhsv(307, 65%, 37%)
CMYKcmyk(0%, 64.9%, 7.4%, 63.1%)
CIE-LABlab(24.18, 35.19, -19.29)
CIE-LCHlch(24.18, 40.13, 331.27°)
OKLaboklab(36.11% 0.1009 -0.0527)
OKLCHoklch(36.11% 0.114 332.4)
XYZxyz(6.8802, 4.1560, 9.4548)
Luminance0.0416 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2157 #215E28
analogous
#46215E #5E2157 #5E2139
triadic
#5E2157 #575E21 #21575E
tetradic
#5E2157 #5E4621 #215E28 #21395E
square
#5E2157 #5E4621 #215E28 #21395E
split-complementary
#5E2157 #395E21 #215E46
monochromatic
#170815 #31112D #5E2157 #8B3181 #B941AB

Accessibility & contrast

On white

11.47
#5E2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2157
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2157#FFFFFF#000000##FFFFFF
##5E21571.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3459
Deuteranopia (green-blind)
#323D55
Tritanopia (blue-blind)
#622638
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e2157;
/* rgb */ color: rgb(94, 33, 87);
/* oklch */ color: oklch(36.1% 0.114 332.4);
Tailwind
colors: {
  custom: {
    50: '#8e6186',
    500: '#5e2157',
    950: '#000000',
  },
}
SCSS
$custom: #5e2157;
$custom-light: #8e6186;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2157",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 306.885,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.11385,
    "h": 332.4
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

primary
#5E2157
secondary
#499251
accent
#D86050
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #5E2157

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

Preview Lab → · Contrast checker → · Palette generator →

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