#5E117F#5E117F

#5E117F is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.170 H 312.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5E117F
RGBrgb(94, 17, 127)
HSLhsl(282, 76%, 28%)
HSVhsv(282, 87%, 50%)
CMYKcmyk(26%, 86.6%, 0%, 50.2%)
CIE-LABlab(24.68, 49.53, -44.40)
CIE-LCHlch(24.68, 66.51, 318.12°)
OKLaboklab(37.33% 0.1148 -0.1259)
OKLCHoklch(37.33% 0.17 312.4)
XYZxyz(8.6466, 4.3131, 20.4516)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E117F #327F11
analogous
#27117F #5E117F #7F1169
triadic
#5E117F #7F5E11 #117F5E
tetradic
#5E117F #7F2711 #327F11 #11697F
square
#5E117F #7F2711 #327F11 #11697F
split-complementary
#5E117F #697F11 #117F27
monochromatic
#14041B #360A49 #5E117F #8618B5 #AA28E2

Accessibility & contrast

On white

11.27
#5E117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E117F
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E117F#FFFFFF#000000##FFFFFF
##5E117F1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#5A2E4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e117f;
/* rgb */ color: rgb(94, 17, 127);
/* oklch */ color: oklch(37.3% 0.170 312.4);
Tailwind
colors: {
  custom: {
    50: '#905ca5',
    500: '#5e117f',
    950: '#000000',
  },
}
SCSS
$custom: #5e117f;
$custom-light: #905ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e117f",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 282,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37329,
    "c": 0.17036,
    "h": 312.4
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#5E117F
secondary
#5DB537
accent
#F3356E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E117F

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

Preview Lab → · Contrast checker → · Palette generator →

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