#5E1157#5E1157

#5E1157 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.136 H 332.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#5E1157
RGBrgb(94, 17, 87)
HSLhsl(305, 69%, 22%)
HSVhsv(305, 82%, 37%)
CMYKcmyk(0%, 81.9%, 7.4%, 63.1%)
CIE-LABlab(21.83, 41.78, -22.98)
CIE-LCHlch(21.83, 47.68, 331.19°)
OKLaboklab(34.42% 0.1201 -0.0632)
OKLCHoklch(34.42% 0.136 332.2)
XYZxyz(6.5369, 3.4693, 9.3403)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1157 #115E18
analogous
#3F115E #5E1157 #5E1131
triadic
#5E1157 #575E11 #11575E
tetradic
#5E1157 #5E3F11 #115E18 #11315E
square
#5E1157 #5E3F11 #115E18 #11315E
split-complementary
#5E1157 #315E11 #115E3F
monochromatic
#1A0518 #2A0827 #5E1157 #921A87 #C624B7

Accessibility & contrast

On white

12.40
#5E1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5E1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1157
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1157#FFFFFF#000000##FFFFFF
##5E11571.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2D59
Deuteranopia (green-blind)
#2B3855
Tritanopia (blue-blind)
#621A33
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1157;
/* rgb */ color: rgb(94, 17, 87);
/* oklch */ color: oklch(34.4% 0.136 332.2);
Tailwind
colors: {
  custom: {
    50: '#8f5986',
    500: '#5e1157',
    950: '#000000',
  },
}
SCSS
$custom: #5e1157;
$custom-light: #8f5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1157",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 305.455,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.13569,
    "h": 332.2
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#5E1157
secondary
#34973D
accent
#EC4C3C
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1157

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

Preview Lab → · Contrast checker → · Palette generator →

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