#5E2177#5E2177

#5E2177 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.2% C 0.145 H 314.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5E2177
RGBrgb(94, 33, 119)
HSLhsl(283, 57%, 30%)
HSVhsv(283, 72%, 47%)
CMYKcmyk(21%, 72.3%, 0%, 53.3%)
CIE-LABlab(26.16, 41.79, -36.94)
CIE-LCHlch(26.16, 55.78, 318.53°)
OKLaboklab(38.18% 0.1015 -0.1041)
OKLCHoklch(38.18% 0.145 314.3)
XYZxyz(8.4892, 4.7996, 17.9284)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2177 #3A7721
analogous
#332177 #5E2177 #772165
triadic
#5E2177 #775E21 #21775E
tetradic
#5E2177 #773321 #3A7721 #216577
square
#5E2177 #773321 #3A7721 #216577
split-complementary
#5E2177 #657721 #217733
monochromatic
#130718 #381447 #5E2177 #842EA7 #A547CC

Accessibility & contrast

On white

10.72
#5E2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2177
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2177#FFFFFF#000000##FFFFFF
##5E21771.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B79
Deuteranopia (green-blind)
#1D3F75
Tritanopia (blue-blind)
#5C3349
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e2177;
/* rgb */ color: rgb(94, 33, 119);
/* oklch */ color: oklch(38.2% 0.145 314.3);
Tailwind
colors: {
  custom: {
    50: '#8f629f',
    500: '#5e2177',
    950: '#000000',
  },
}
SCSS
$custom: #5e2177;
$custom-light: #8f629f;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2177",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 282.558,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38178,
    "c": 0.14538,
    "h": 314.3
  },
  "luminance": 0.04799
}

Semantic roles & 50–950 ramp

primary
#5E2177
secondary
#66AA4A
accent
#E04874
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2177

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

Preview Lab → · Contrast checker → · Palette generator →

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