#5E187E#5E187E

#5E187E is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.8% C 0.163 H 312.2°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5E187E
RGBrgb(94, 24, 126)
HSLhsl(281, 68%, 29%)
HSVhsv(281, 81%, 49%)
CMYKcmyk(25.4%, 81%, 0%, 50.6%)
CIE-LABlab(25.38, 47.04, -42.63)
CIE-LCHlch(25.38, 63.48, 317.81°)
OKLaboklab(37.79% 0.1096 -0.1207)
OKLCHoklch(37.79% 0.163 312.2)
XYZxyz(8.7079, 4.5396, 20.1521)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E187E #387E18
analogous
#2B187E #5E187E #7E186B
triadic
#5E187E #7E5E18 #187E5E
tetradic
#5E187E #7E2B18 #387E18 #186B7E
square
#5E187E #7E2B18 #387E18 #186B7E
split-complementary
#5E187E #6B7E18 #187E2B
monochromatic
#13051A #380E4B #5E187E #8422B1 #A637D9

Accessibility & contrast

On white

11.01
#5E187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5E187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E187E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E187E#FFFFFF#000000##FFFFFF
##5E187E1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#053D7C
Tritanopia (blue-blind)
#5A314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e187e;
/* rgb */ color: rgb(94, 24, 126);
/* oklch */ color: oklch(37.8% 0.163 312.2);
Tailwind
colors: {
  custom: {
    50: '#905ea4',
    500: '#5e187e',
    950: '#000000',
  },
}
SCSS
$custom: #5e187e;
$custom-light: #905ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e187e",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 281.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37793,
    "c": 0.16302,
    "h": 312.2
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#5E187E
secondary
#63B23F
accent
#EB3D74
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E187E

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

Preview Lab → · Contrast checker → · Palette generator →

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