#5E177D#5E177D

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

Color values

HEX#5E177D
RGBrgb(94, 23, 125)
HSLhsl(282, 69%, 29%)
HSVhsv(282, 82%, 49%)
CMYKcmyk(24.8%, 81.6%, 0%, 51%)
CIE-LABlab(25.18, 47.18, -42.33)
CIE-LCHlch(25.18, 63.38, 318.10°)
OKLaboklab(37.63% 0.1107 -0.1198)
OKLCHoklch(37.63% 0.163 312.7)
XYZxyz(8.6235, 4.4734, 19.8073)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E177D #367D17
analogous
#2B177D #5E177D #7D1769
triadic
#5E177D #7D5E17 #177D5E
tetradic
#5E177D #7D2B17 #367D17 #17697D
square
#5E177D #7D2B17 #367D17 #17697D
split-complementary
#5E177D #697D17 #177D2B
monochromatic
#13051A #370D49 #5E177D #8521B1 #A835DA

Accessibility & contrast

On white

11.08
#5E177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5E177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E177D
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E177D#FFFFFF#000000##FFFFFF
##5E177D1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e177d;
/* rgb */ color: rgb(94, 23, 125);
/* oklch */ color: oklch(37.6% 0.163 312.7);
Tailwind
colors: {
  custom: {
    50: '#905ea3',
    500: '#5e177d',
    950: '#000000',
  },
}
SCSS
$custom: #5e177d;
$custom-light: #905ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e177d",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 281.765,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37626,
    "c": 0.16308,
    "h": 312.7
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#5E177D
secondary
#61B23E
accent
#EC3C71
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E177D

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

Preview Lab → · Contrast checker → · Palette generator →

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