#5E127F#5E127F

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

Color values

HEX#5E127F
RGBrgb(94, 18, 127)
HSLhsl(282, 75%, 28%)
HSVhsv(282, 86%, 50%)
CMYKcmyk(26%, 85.8%, 0%, 50.2%)
CIE-LABlab(24.78, 49.23, -44.24)
CIE-LCHlch(24.78, 66.19, 318.06°)
OKLaboklab(37.4% 0.1141 -0.1254)
OKLCHoklch(37.4% 0.17 312.3)
XYZxyz(8.6625, 4.3449, 20.4569)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E127F #337F12
analogous
#27127F #5E127F #7F1269
triadic
#5E127F #7F5E12 #127F5E
tetradic
#5E127F #7F2712 #337F12 #12697F
square
#5E127F #7F2712 #337F12 #12697F
split-complementary
#5E127F #697F12 #127F27
monochromatic
#14041B #360A49 #5E127F #861AB5 #AA2BE1

Accessibility & contrast

On white

11.24
#5E127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E127F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E127F#FFFFFF#000000##FFFFFF
##5E127F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e127f;
/* rgb */ color: rgb(94, 18, 127);
/* oklch */ color: oklch(37.4% 0.170 312.3);
Tailwind
colors: {
  custom: {
    50: '#905ca5',
    500: '#5e127f',
    950: '#000000',
  },
}
SCSS
$custom: #5e127f;
$custom-light: #905ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e127f",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 281.835,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37398,
    "c": 0.16954,
    "h": 312.3
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#5E127F
secondary
#5EB538
accent
#F2366F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E127F

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

Preview Lab → · Contrast checker → · Palette generator →

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