#5E127E#5E127E

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

Color values

HEX#5E127E
RGBrgb(94, 18, 126)
HSLhsl(282, 75%, 28%)
HSVhsv(282, 86%, 49%)
CMYKcmyk(25.4%, 85.7%, 0%, 50.6%)
CIE-LABlab(24.70, 49.02, -43.74)
CIE-LCHlch(24.70, 65.70, 318.26°)
OKLaboklab(37.32% 0.1144 -0.1239)
OKLCHoklch(37.32% 0.169 312.7)
XYZxyz(8.5976, 4.3189, 20.1154)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E127E #327E12
analogous
#28127E #5E127E #7E1268
triadic
#5E127E #7E5E12 #127E5E
tetradic
#5E127E #7E2812 #327E12 #12687E
square
#5E127E #7E2812 #327E12 #12687E
split-complementary
#5E127E #687E12 #127E28
monochromatic
#14041B #360A48 #5E127E #861AB4 #AA2AE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E127E#FFFFFF#000000##FFFFFF
##5E127E1.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)
#003781
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#5A2E4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e127e;
/* rgb */ color: rgb(94, 18, 126);
/* oklch */ color: oklch(37.3% 0.169 312.7);
Tailwind
colors: {
  custom: {
    50: '#905ca4',
    500: '#5e127e',
    950: '#000000',
  },
}
SCSS
$custom: #5e127e;
$custom-light: #905ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e127e",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 282.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37316,
    "c": 0.16862,
    "h": 312.7
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#5E127E
secondary
#5DB438
accent
#F2366E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E127E

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

Preview Lab → · Contrast checker → · Palette generator →

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