#5E177E#5E177E

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

Color values

HEX#5E177E
RGBrgb(94, 23, 126)
HSLhsl(281, 69%, 29%)
HSVhsv(281, 82%, 49%)
CMYKcmyk(25.4%, 81.7%, 0%, 50.6%)
CIE-LABlab(25.26, 47.40, -42.83)
CIE-LCHlch(25.26, 63.88, 317.90°)
OKLaboklab(37.71% 0.1104 -0.1213)
OKLCHoklch(37.71% 0.164 312.3)
XYZxyz(8.6877, 4.4991, 20.1454)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E177E #377E17
analogous
#2A177E #5E177E #7E176B
triadic
#5E177E #7E5E17 #177E5E
tetradic
#5E177E #7E2A17 #377E17 #176B7E
square
#5E177E #7E2A17 #377E17 #176B7E
split-complementary
#5E177E #6B7E17 #177E2A
monochromatic
#13051A #370E4A #5E177E #8520B2 #A735DA

Accessibility & contrast

On white

11.05
#5E177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E177E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E177E#FFFFFF#000000##FFFFFF
##5E177E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e177e;
/* rgb */ color: rgb(94, 23, 126);
/* oklch */ color: oklch(37.7% 0.164 312.3);
Tailwind
colors: {
  custom: {
    50: '#905ea4',
    500: '#5e177e',
    950: '#000000',
  },
}
SCSS
$custom: #5e177e;
$custom-light: #905ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e177e",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 281.359,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.16403,
    "h": 312.3
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#5E177E
secondary
#62B33E
accent
#EC3C73
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E177E

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

Preview Lab → · Contrast checker → · Palette generator →

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