#5E2178#5E2178

#5E2178 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.3% C 0.146 H 313.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5E2178
RGBrgb(94, 33, 120)
HSLhsl(282, 57%, 30%)
HSVhsv(282, 73%, 47%)
CMYKcmyk(21.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(26.23, 42.02, -37.46)
CIE-LCHlch(26.23, 56.29, 318.28°)
OKLaboklab(38.25% 0.1014 -0.1056)
OKLCHoklch(38.25% 0.146 313.8)
XYZxyz(8.5495, 4.8237, 18.2464)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2178 #3B7821
analogous
#322178 #5E2178 #782167
triadic
#5E2178 #785E21 #21785E
tetradic
#5E2178 #783221 #3B7821 #216778
square
#5E2178 #783221 #3B7821 #216778
split-complementary
#5E2178 #677821 #217832
monochromatic
#130718 #381448 #5E2178 #842EA8 #A547CC

Accessibility & contrast

On white

10.69
#5E2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2178
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2178#FFFFFF#000000##FFFFFF
##5E21781.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#1C3F76
Tritanopia (blue-blind)
#5B334A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e2178;
/* rgb */ color: rgb(94, 33, 120);
/* oklch */ color: oklch(38.3% 0.146 313.8);
Tailwind
colors: {
  custom: {
    50: '#8f629f',
    500: '#5e2178',
    950: '#000000',
  },
}
SCSS
$custom: #5e2178;
$custom-light: #8f629f;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2178",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 282.069,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.38251,
    "c": 0.14641,
    "h": 313.8
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#5E2178
secondary
#67AB4A
accent
#E04875
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050F
muted
#7E7A7E

Preview Lab

Preview with #5E2178

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

Preview Lab → · Contrast checker → · Palette generator →

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