#5E177B#5E177B

#5E177B is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.161 H 313.6°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5E177B
RGBrgb(94, 23, 123)
HSLhsl(283, 68%, 29%)
HSVhsv(283, 81%, 48%)
CMYKcmyk(23.6%, 81.3%, 0%, 51.8%)
CIE-LABlab(25.02, 46.75, -41.31)
CIE-LCHlch(25.02, 62.38, 318.53°)
OKLaboklab(37.47% 0.1111 -0.1168)
OKLCHoklch(37.47% 0.161 313.6)
XYZxyz(8.4970, 4.4228, 19.1411)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E177B #347B17
analogous
#2C177B #5E177B #7B1766
triadic
#5E177B #7B5E17 #177B5E
tetradic
#5E177B #7B2C17 #347B17 #17667B
square
#5E177B #7B2C17 #347B17 #17667B
split-complementary
#5E177B #667B17 #177B2C
monochromatic
#14051A #370D47 #5E177B #8521AF #A933D9

Accessibility & contrast

On white

11.14
#5E177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E177B
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E177B#FFFFFF#000000##FFFFFF
##5E177B1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#0B3D79
Tritanopia (blue-blind)
#5B2F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e177b;
/* rgb */ color: rgb(94, 23, 123);
/* oklch */ color: oklch(37.5% 0.161 313.6);
Tailwind
colors: {
  custom: {
    50: '#905ea2',
    500: '#5e177b',
    950: '#000000',
  },
}
SCSS
$custom: #5e177b;
$custom-light: #905ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e177b",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 282.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37468,
    "c": 0.16119,
    "h": 313.6
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#5E177B
secondary
#5FB03E
accent
#EB3C6F
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E177B

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

Preview Lab → · Contrast checker → · Palette generator →

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