#5E217A#5E217A

#5E217A is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.4% C 0.148 H 313.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5E217A
RGBrgb(94, 33, 122)
HSLhsl(281, 57%, 30%)
HSVhsv(281, 73%, 48%)
CMYKcmyk(23%, 73%, 0%, 52.2%)
CIE-LABlab(26.37, 42.47, -38.50)
CIE-LCHlch(26.37, 57.32, 317.81°)
OKLaboklab(38.4% 0.1012 -0.1086)
OKLCHoklch(38.4% 0.148 313)
XYZxyz(8.6722, 4.8728, 18.8923)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E217A #3D7A21
analogous
#32217A #5E217A #7A2169
triadic
#5E217A #7A5E21 #217A5E
tetradic
#5E217A #7A3221 #3D7A21 #21697A
square
#5E217A #7A3221 #3D7A21 #21697A
split-complementary
#5E217A #697A21 #217A32
monochromatic
#14071A #39144A #5E217A #832EAA #A348CD

Accessibility & contrast

On white

10.64
#5E217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E217A
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E217A#FFFFFF#000000##FFFFFF
##5E217A1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#194078
Tritanopia (blue-blind)
#5B344B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e217a;
/* rgb */ color: rgb(94, 33, 122);
/* oklch */ color: oklch(38.4% 0.148 313.0);
Tailwind
colors: {
  custom: {
    50: '#8f62a1',
    500: '#5e217a',
    950: '#000000',
  },
}
SCSS
$custom: #5e217a;
$custom-light: #8f62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e217a",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 281.124,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38398,
    "c": 0.14848,
    "h": 313
  },
  "luminance": 0.04873
}

Semantic roles & 50–950 ramp

primary
#5E217A
secondary
#69AD4A
accent
#E14777
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E217A

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

Preview Lab → · Contrast checker → · Palette generator →

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