#5E2173#5E2173

#5E2173 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.9% C 0.141 H 316.1°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5E2173
RGBrgb(94, 33, 115)
HSLhsl(285, 55%, 29%)
HSVhsv(285, 71%, 45%)
CMYKcmyk(18.3%, 71.3%, 0%, 54.9%)
CIE-LABlab(25.88, 40.91, -34.83)
CIE-LCHlch(25.88, 53.73, 319.59°)
OKLaboklab(37.89% 0.1019 -0.0979)
OKLCHoklch(37.89% 0.141 316.1)
XYZxyz(8.2540, 4.7055, 16.6898)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2173 #367321
analogous
#352173 #5E2173 #73215F
triadic
#5E2173 #735E21 #21735E
tetradic
#5E2173 #733521 #367321 #215F73
square
#5E2173 #733521 #367321 #215F73
split-complementary
#5E2173 #5F7321 #217335
monochromatic
#130718 #371343 #5E2173 #852FA3 #A845CA

Accessibility & contrast

On white

10.82
#5E2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2173
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2173#FFFFFF#000000##FFFFFF
##5E21731.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#213F71
Tritanopia (blue-blind)
#5D3147
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e2173;
/* rgb */ color: rgb(94, 33, 115);
/* oklch */ color: oklch(37.9% 0.141 316.1);
Tailwind
colors: {
  custom: {
    50: '#8f629c',
    500: '#5e2173',
    950: '#000000',
  },
}
SCSS
$custom: #5e2173;
$custom-light: #8f629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2173",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 284.634,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.14127,
    "h": 316.1
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#5E2173
secondary
#61A649
accent
#DF496F
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2173

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

Preview Lab → · Contrast checker → · Palette generator →

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