#5E127D#5E127D

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

Color values

HEX#5E127D
RGBrgb(94, 18, 125)
HSLhsl(283, 75%, 28%)
HSVhsv(283, 86%, 49%)
CMYKcmyk(24.8%, 85.6%, 0%, 51%)
CIE-LABlab(24.62, 48.81, -43.23)
CIE-LCHlch(24.62, 65.21, 318.47°)
OKLaboklab(37.23% 0.1146 -0.1224)
OKLCHoklch(37.23% 0.168 313.1)
XYZxyz(8.5334, 4.2932, 19.7772)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E127D #317D12
analogous
#29127D #5E127D #7D1266
triadic
#5E127D #7D5E12 #127D5E
tetradic
#5E127D #7D2912 #317D12 #12667D
square
#5E127D #7D2912 #317D12 #12667D
split-complementary
#5E127D #667D12 #127D29
monochromatic
#14041B #360A48 #5E127D #861AB2 #AB29E0

Accessibility & contrast

On white

11.30
#5E127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E127D
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E127D#FFFFFF#000000##FFFFFF
##5E127D1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#5A2E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e127d;
/* rgb */ color: rgb(94, 18, 125);
/* oklch */ color: oklch(37.2% 0.168 313.1);
Tailwind
colors: {
  custom: {
    50: '#905ca3',
    500: '#5e127d',
    950: '#000000',
  },
}
SCSS
$custom: #5e127d;
$custom-light: #905ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e127d",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 282.617,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37234,
    "c": 0.16772,
    "h": 313.1
  },
  "luminance": 0.04293
}

Semantic roles & 50–950 ramp

primary
#5E127D
secondary
#5CB338
accent
#F1366D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E127D

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

Preview Lab → · Contrast checker → · Palette generator →

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