#5E187F#5E187F

#5E187F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.164 H 311.8°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5E187F
RGBrgb(94, 24, 127)
HSLhsl(281, 68%, 30%)
HSVhsv(281, 81%, 50%)
CMYKcmyk(26%, 81.1%, 0%, 50.2%)
CIE-LABlab(25.46, 47.26, -43.14)
CIE-LCHlch(25.46, 63.99, 317.61°)
OKLaboklab(37.87% 0.1094 -0.1222)
OKLCHoklch(37.87% 0.164 311.8)
XYZxyz(8.7728, 4.5655, 20.4937)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E187F #397F18
analogous
#2B187F #5E187F #7F186D
triadic
#5E187F #7F5E18 #187F5E
tetradic
#5E187F #7F2B18 #397F18 #186D7F
square
#5E187F #7F2B18 #397F18 #186D7F
split-complementary
#5E187F #6D7F18 #187F2B
monochromatic
#13051A #380E4C #5E187F #8422B2 #A638D9

Accessibility & contrast

On white

10.98
#5E187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E187F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E187F#FFFFFF#000000##FFFFFF
##5E187F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#023E7D
Tritanopia (blue-blind)
#5A314C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e187f;
/* rgb */ color: rgb(94, 24, 127);
/* oklch */ color: oklch(37.9% 0.164 311.8);
Tailwind
colors: {
  custom: {
    50: '#905ea5',
    500: '#5e187f',
    950: '#000000',
  },
}
SCSS
$custom: #5e187f;
$custom-light: #905ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e187f",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 280.777,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37873,
    "c": 0.16398,
    "h": 311.8
  },
  "luminance": 0.04565
}

Semantic roles & 50–950 ramp

primary
#5E187F
secondary
#65B33F
accent
#EB3D75
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E187F

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

Preview Lab → · Contrast checker → · Palette generator →

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