#5E2176#5E2176

#5E2176 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.144 H 314.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5E2176
RGBrgb(94, 33, 118)
HSLhsl(283, 56%, 30%)
HSVhsv(283, 72%, 46%)
CMYKcmyk(20.3%, 72%, 0%, 53.7%)
CIE-LABlab(26.09, 41.57, -36.41)
CIE-LCHlch(26.09, 55.26, 318.78°)
OKLaboklab(38.1% 0.1016 -0.1025)
OKLCHoklch(38.1% 0.144 314.7)
XYZxyz(8.4294, 4.7757, 17.6138)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2176 #397621
analogous
#342176 #5E2176 #762164
triadic
#5E2176 #765E21 #21765E
tetradic
#5E2176 #763421 #397621 #216476
square
#5E2176 #763421 #397621 #216476
split-complementary
#5E2176 #647621 #217634
monochromatic
#130718 #381446 #5E2176 #842EA6 #A646CB

Accessibility & contrast

On white

10.74
#5E2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2176
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2176#FFFFFF#000000##FFFFFF
##5E21761.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#1E3F74
Tritanopia (blue-blind)
#5C3249
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e2176;
/* rgb */ color: rgb(94, 33, 118);
/* oklch */ color: oklch(38.1% 0.144 314.7);
Tailwind
colors: {
  custom: {
    50: '#8f629e',
    500: '#5e2176',
    950: '#000000',
  },
}
SCSS
$custom: #5e2176;
$custom-light: #8f629e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2176",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 283.059,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38105,
    "c": 0.14435,
    "h": 314.7
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#5E2176
secondary
#65A94A
accent
#E04873
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2176

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

Preview Lab → · Contrast checker → · Palette generator →

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