#5E2170#5E2170

#5E2170 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.7% C 0.138 H 317.6°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5E2170
RGBrgb(94, 33, 112)
HSLhsl(286, 54%, 28%)
HSVhsv(286, 71%, 44%)
CMYKcmyk(16.1%, 70.5%, 0%, 56.1%)
CIE-LABlab(25.68, 40.25, -33.23)
CIE-LCHlch(25.68, 52.20, 320.45°)
OKLaboklab(37.68% 0.102 -0.0932)
OKLCHoklch(37.68% 0.138 317.6)
XYZxyz(8.0842, 4.6376, 15.7954)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2170 #337021
analogous
#362170 #5E2170 #70215A
triadic
#5E2170 #705E21 #21705E
tetradic
#5E2170 #703621 #337021 #215A70
square
#5E2170 #703621 #337021 #215A70
split-complementary
#5E2170 #5A7021 #217036
monochromatic
#140718 #361341 #5E2170 #862F9F #AA44C8

Accessibility & contrast

On white

10.90
#5E2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2170
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2170#FFFFFF#000000##FFFFFF
##5E21701.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003972
Deuteranopia (green-blind)
#243F6E
Tritanopia (blue-blind)
#5D3045
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e2170;
/* rgb */ color: rgb(94, 33, 112);
/* oklch */ color: oklch(37.7% 0.138 317.6);
Tailwind
colors: {
  custom: {
    50: '#8e6299',
    500: '#5e2170',
    950: '#000000',
  },
}
SCSS
$custom: #5e2170;
$custom-light: #8e6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2170",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 286.329,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37681,
    "c": 0.1382,
    "h": 317.6
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#5E2170
secondary
#5EA449
accent
#DE4A6C
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2170

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

Preview Lab → · Contrast checker → · Palette generator →

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