#5E187D#5E187D

#5E187D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.162 H 312.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#5E187D
RGBrgb(94, 24, 125)
HSLhsl(282, 68%, 29%)
HSVhsv(282, 81%, 49%)
CMYKcmyk(24.8%, 80.8%, 0%, 51%)
CIE-LABlab(25.30, 46.82, -42.12)
CIE-LCHlch(25.30, 62.98, 318.02°)
OKLaboklab(37.71% 0.1098 -0.1192)
OKLCHoklch(37.71% 0.162 312.6)
XYZxyz(8.6437, 4.5139, 19.8140)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E187D #377D18
analogous
#2C187D #5E187D #7D186A
triadic
#5E187D #7D5E18 #187D5E
tetradic
#5E187D #7D2C18 #377D18 #186A7D
square
#5E187D #7D2C18 #377D18 #186A7D
split-complementary
#5E187D #6A7D18 #187D2C
monochromatic
#13051A #370E4A #5E187D #8522B0 #A737D9

Accessibility & contrast

On white

11.04
#5E187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5E187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E187D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E187D#FFFFFF#000000##FFFFFF
##5E187D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#073D7B
Tritanopia (blue-blind)
#5A304A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e187d;
/* rgb */ color: rgb(94, 24, 125);
/* oklch */ color: oklch(37.7% 0.162 312.6);
Tailwind
colors: {
  custom: {
    50: '#905ea3',
    500: '#5e187d',
    950: '#000000',
  },
}
SCSS
$custom: #5e187d;
$custom-light: #905ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e187d",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 281.584,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37713,
    "c": 0.16206,
    "h": 312.6
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#5E187D
secondary
#62B23F
accent
#EB3D72
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E187D

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

Preview Lab → · Contrast checker → · Palette generator →

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