#5E167F#5E167F

#5E167F is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.166 H 312.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5E167F
RGBrgb(94, 22, 127)
HSLhsl(281, 70%, 29%)
HSVhsv(281, 83%, 50%)
CMYKcmyk(26%, 82.7%, 0%, 50.2%)
CIE-LABlab(25.22, 47.96, -43.53)
CIE-LCHlch(25.22, 64.77, 317.77°)
OKLaboklab(37.7% 0.111 -0.1233)
OKLCHoklch(37.7% 0.166 312)
XYZxyz(8.7331, 4.4861, 20.4804)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E167F #377F16
analogous
#2A167F #5E167F #7F166C
triadic
#5E167F #7F5E16 #167F5E
tetradic
#5E167F #7F2A16 #377F16 #166C7F
square
#5E167F #7F2A16 #377F16 #166C7F
split-complementary
#5E167F #6C7F16 #167F2A
monochromatic
#13051A #370D4B #5E167F #851FB3 #A734DC

Accessibility & contrast

On white

11.07
#5E167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5E167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E167F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E167F#FFFFFF#000000##FFFFFF
##5E167F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#5A304B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e167f;
/* rgb */ color: rgb(94, 22, 127);
/* oklch */ color: oklch(37.7% 0.166 312.0);
Tailwind
colors: {
  custom: {
    50: '#905da5',
    500: '#5e167f',
    950: '#000000',
  },
}
SCSS
$custom: #5e167f;
$custom-light: #905da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e167f",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 281.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37703,
    "c": 0.16595,
    "h": 312
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#5E167F
secondary
#62B43D
accent
#ED3B73
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E167F

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

Preview Lab → · Contrast checker → · Palette generator →

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