#5E167B#5E167B

#5E167B is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.162 H 313.6°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#5E167B
RGBrgb(94, 22, 123)
HSLhsl(283, 70%, 28%)
HSVhsv(283, 82%, 48%)
CMYKcmyk(23.6%, 82.1%, 0%, 51.8%)
CIE-LABlab(24.90, 47.10, -41.51)
CIE-LCHlch(24.90, 62.78, 318.61°)
OKLaboklab(37.38% 0.1119 -0.1174)
OKLCHoklch(37.38% 0.162 313.6)
XYZxyz(8.4775, 4.3838, 19.1346)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E167B #337B16
analogous
#2B167B #5E167B #7B1665
triadic
#5E167B #7B5E16 #167B5E
tetradic
#5E167B #7B2B16 #337B16 #16657B
square
#5E167B #7B2B16 #337B16 #16657B
split-complementary
#5E167B #657B16 #167B2B
monochromatic
#14051A #360D47 #5E167B #861FAF #AA31DA

Accessibility & contrast

On white

11.19
#5E167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E167B
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E167B#FFFFFF#000000##FFFFFF
##5E167B1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#093D79
Tritanopia (blue-blind)
#5B2F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e167b;
/* rgb */ color: rgb(94, 22, 123);
/* oklch */ color: oklch(37.4% 0.162 313.6);
Tailwind
colors: {
  custom: {
    50: '#905da2',
    500: '#5e167b',
    950: '#000000',
  },
}
SCSS
$custom: #5e167b;
$custom-light: #905da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e167b",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 282.772,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37383,
    "c": 0.1622,
    "h": 313.6
  },
  "luminance": 0.04384
}

Semantic roles & 50–950 ramp

primary
#5E167B
secondary
#5EB03D
accent
#EC3B6E
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E167B

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

Preview Lab → · Contrast checker → · Palette generator →

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