#5E117E#5E117E

#5E117E is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.169 H 312.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#5E117E
RGBrgb(94, 17, 126)
HSLhsl(282, 76%, 28%)
HSVhsv(282, 87%, 49%)
CMYKcmyk(25.4%, 86.5%, 0%, 50.6%)
CIE-LABlab(24.60, 49.31, -43.90)
CIE-LCHlch(24.60, 66.02, 318.32°)
OKLaboklab(37.25% 0.1151 -0.1244)
OKLCHoklch(37.25% 0.169 312.8)
XYZxyz(8.5818, 4.2872, 20.1101)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E117E #317E11
analogous
#27117E #5E117E #7E1167
triadic
#5E117E #7E5E11 #117E5E
tetradic
#5E117E #7E2711 #317E11 #11677E
square
#5E117E #7E2711 #317E11 #11677E
split-complementary
#5E117E #677E11 #117E27
monochromatic
#14041B #360A48 #5E117E #8618B4 #AB27E2

Accessibility & contrast

On white

11.31
#5E117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E117E
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E117E#FFFFFF#000000##FFFFFF
##5E117E1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#5A2E4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e117e;
/* rgb */ color: rgb(94, 17, 126);
/* oklch */ color: oklch(37.2% 0.169 312.8);
Tailwind
colors: {
  custom: {
    50: '#905ca4',
    500: '#5e117e',
    950: '#000000',
  },
}
SCSS
$custom: #5e117e;
$custom-light: #905ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e117e",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 282.385,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37246,
    "c": 0.16945,
    "h": 312.8
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#5E117E
secondary
#5CB437
accent
#F3356D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E117E

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

Preview Lab → · Contrast checker → · Palette generator →

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