#5E135B#5E135B

#5E135B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.137 H 329.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5E135B
RGBrgb(94, 19, 91)
HSLhsl(302, 66%, 22%)
HSVhsv(302, 80%, 37%)
CMYKcmyk(0%, 79.8%, 3.2%, 63.1%)
CIE-LABlab(22.31, 41.81, -24.89)
CIE-LCHlch(22.31, 48.66, 329.23°)
OKLaboklab(34.83% 0.1182 -0.0688)
OKLCHoklch(34.83% 0.137 329.8)
XYZxyz(6.7373, 3.6013, 10.2358)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E135B #135E16
analogous
#3C135E #5E135B #5E1336
triadic
#5E135B #5B5E13 #135B5E
tetradic
#5E135B #5E3C13 #135E16 #13365E
square
#5E135B #5E3C13 #135E16 #13365E
split-complementary
#5E135B #365E13 #135E3C
monochromatic
#190519 #2B092A #5E135B #911D8C #C428BE

Accessibility & contrast

On white

12.21
#5E135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5E135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E135B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E135B#FFFFFF#000000##FFFFFF
##5E135B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082F5D
Deuteranopia (green-blind)
#2A3959
Tritanopia (blue-blind)
#621E36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e135b;
/* rgb */ color: rgb(94, 19, 91);
/* oklch */ color: oklch(34.8% 0.137 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a8a',
    500: '#5e135b',
    950: '#000000',
  },
}
SCSS
$custom: #5e135b;
$custom-light: #8f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e135b",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 302.4,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34833,
    "c": 0.13676,
    "h": 329.8
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#5E135B
secondary
#37963B
accent
#E9453F
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E135B

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

Preview Lab → · Contrast checker → · Palette generator →

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