#5E177F#5E177F

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

Color values

HEX#5E177F
RGBrgb(94, 23, 127)
HSLhsl(281, 69%, 29%)
HSVhsv(281, 82%, 50%)
CMYKcmyk(26%, 81.9%, 0%, 50.2%)
CIE-LABlab(25.34, 47.61, -43.34)
CIE-LCHlch(25.34, 64.38, 317.69°)
OKLaboklab(37.79% 0.1102 -0.1228)
OKLCHoklch(37.79% 0.165 311.9)
XYZxyz(8.7525, 4.5250, 20.4869)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E177F #387F17
analogous
#2A177F #5E177F #7F176C
triadic
#5E177F #7F5E17 #177F5E
tetradic
#5E177F #7F2A17 #387F17 #176C7F
square
#5E177F #7F2A17 #387F17 #176C7F
split-complementary
#5E177F #6C7F17 #177F2A
monochromatic
#13051A #380E4B #5E177F #8420B3 #A636DB

Accessibility & contrast

On white

11.02
#5E177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E177F
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E177F#FFFFFF#000000##FFFFFF
##5E177F1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#5A314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e177f;
/* rgb */ color: rgb(94, 23, 127);
/* oklch */ color: oklch(37.8% 0.165 311.9);
Tailwind
colors: {
  custom: {
    50: '#905ea5',
    500: '#5e177f',
    950: '#000000',
  },
}
SCSS
$custom: #5e177f;
$custom-light: #905ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e177f",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 280.962,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37787,
    "c": 0.16498,
    "h": 311.9
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#5E177F
secondary
#63B43E
accent
#EC3C74
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E177F

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

Preview Lab → · Contrast checker → · Palette generator →

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