#5E167A#5E167A

#5E167A is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 314.1°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5E167A
RGBrgb(94, 22, 122)
HSLhsl(283, 69%, 28%)
HSVhsv(283, 82%, 48%)
CMYKcmyk(23%, 82%, 0%, 52.2%)
CIE-LABlab(24.82, 46.88, -41.00)
CIE-LCHlch(24.82, 62.28, 318.83°)
OKLaboklab(37.3% 0.1121 -0.1159)
OKLCHoklch(37.3% 0.161 314.1)
XYZxyz(8.4153, 4.3589, 18.8067)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E167A #327A16
analogous
#2C167A #5E167A #7A1664
triadic
#5E167A #7A5E16 #167A5E
tetradic
#5E167A #7A2C16 #327A16 #16647A
square
#5E167A #7A2C16 #327A16 #16647A
split-complementary
#5E167A #647A16 #167A2C
monochromatic
#14051A #360D46 #5E167A #861FAE #AA31DA

Accessibility & contrast

On white

11.22
#5E167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E167A
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E167A#FFFFFF#000000##FFFFFF
##5E167A1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#0C3D78
Tritanopia (blue-blind)
#5B2E48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e167a;
/* rgb */ color: rgb(94, 22, 122);
/* oklch */ color: oklch(37.3% 0.161 314.1);
Tailwind
colors: {
  custom: {
    50: '#905da1',
    500: '#5e167a',
    950: '#000000',
  },
}
SCSS
$custom: #5e167a;
$custom-light: #905da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e167a",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 283.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37304,
    "c": 0.16126,
    "h": 314.1
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#5E167A
secondary
#5DAF3D
accent
#EC3C6D
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E167A

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

Preview Lab → · Contrast checker → · Palette generator →

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