#5E1152#5E1152

#5E1152 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.132 H 335.4°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#5E1152
RGBrgb(94, 17, 82)
HSLhsl(309, 69%, 22%)
HSVhsv(309, 82%, 37%)
CMYKcmyk(0%, 81.9%, 12.8%, 63.1%)
CIE-LABlab(21.54, 40.95, -20.08)
CIE-LCHlch(21.54, 45.60, 333.88°)
OKLaboklab(34.12% 0.1198 -0.0549)
OKLCHoklch(34.12% 0.132 335.4)
XYZxyz(6.3396, 3.3904, 8.3015)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1152 #115E1D
analogous
#44115E #5E1152 #5E112C
triadic
#5E1152 #525E11 #11525E
tetradic
#5E1152 #5E4411 #115E1D #112C5E
square
#5E1152 #5E4411 #115E1D #112C5E
split-complementary
#5E1152 #2C5E11 #115E44
monochromatic
#1A0517 #2A0825 #5E1152 #921A7F #C624AC

Accessibility & contrast

On white

12.51
#5E1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5E1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1152
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1152#FFFFFF#000000##FFFFFF
##5E11521.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#2D3850
Tritanopia (blue-blind)
#631830
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1152;
/* rgb */ color: rgb(94, 17, 82);
/* oklch */ color: oklch(34.1% 0.132 335.4);
Tailwind
colors: {
  custom: {
    50: '#8f5983',
    500: '#5e1152',
    950: '#000000',
  },
}
SCSS
$custom: #5e1152;
$custom-light: #8f5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1152",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 309.351,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34115,
    "c": 0.13175,
    "h": 335.4
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#5E1152
secondary
#349744
accent
#EC573C
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5E1152

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

Preview Lab → · Contrast checker → · Palette generator →

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