#5E115B#5E115B

#5E115B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.139 H 329.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#5E115B
RGBrgb(94, 17, 91)
HSLhsl(302, 69%, 22%)
HSVhsv(302, 82%, 37%)
CMYKcmyk(0%, 81.9%, 3.2%, 63.1%)
CIE-LABlab(22.08, 42.48, -25.26)
CIE-LCHlch(22.08, 49.42, 329.26°)
OKLaboklab(34.67% 0.1201 -0.0698)
OKLCHoklch(34.67% 0.139 329.8)
XYZxyz(6.7048, 3.5364, 10.2250)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E115B #115E14
analogous
#3B115E #5E115B #5E1135
triadic
#5E115B #5B5E11 #115B5E
tetradic
#5E115B #5E3B11 #115E14 #11355E
square
#5E115B #5E3B11 #115E14 #11355E
split-complementary
#5E115B #355E11 #115E3B
monochromatic
#1A0519 #2A0829 #5E115B #921A8D #C624BF

Accessibility & contrast

On white

12.30
#5E115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5E115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E115B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E115B#FFFFFF#000000##FFFFFF
##5E115B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5D
Deuteranopia (green-blind)
#293859
Tritanopia (blue-blind)
#621C35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e115b;
/* rgb */ color: rgb(94, 17, 91);
/* oklch */ color: oklch(34.7% 0.139 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a8a',
    500: '#5e115b',
    950: '#000000',
  },
}
SCSS
$custom: #5e115b;
$custom-light: #8f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e115b",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 302.338,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34667,
    "c": 0.13893,
    "h": 329.8
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#5E115B
secondary
#349738
accent
#EC423C
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E115B

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

Preview Lab → · Contrast checker → · Palette generator →

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