#5E168A#5E168A

#5E168A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.176 H 307.8°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5E168A
RGBrgb(94, 22, 138)
HSLhsl(277, 73%, 31%)
HSVhsv(277, 84%, 54%)
CMYKcmyk(31.9%, 84.1%, 0%, 45.9%)
CIE-LABlab(26.12, 50.39, -48.96)
CIE-LCHlch(26.12, 70.26, 315.82°)
OKLaboklab(38.62% 0.1082 -0.1393)
OKLCHoklch(38.62% 0.176 307.8)
XYZxyz(9.4895, 4.7886, 24.4642)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E168A #428A16
analogous
#24168A #5E168A #8A167C
triadic
#5E168A #8A5E16 #168A5E
tetradic
#5E168A #8A2416 #428A16 #167C8A
square
#5E168A #8A2416 #428A16 #167C8A
split-complementary
#5E168A #7C8A16 #168A24
monochromatic
#160520 #3A0E55 #5E168A #821EBF #A13BE0

Accessibility & contrast

On white

10.73
#5E168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E168A
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E168A#FFFFFF#000000##FFFFFF
##5E168A1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#573551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e168a;
/* rgb */ color: rgb(94, 22, 138);
/* oklch */ color: oklch(38.6% 0.176 307.8);
Tailwind
colors: {
  custom: {
    50: '#915ead',
    500: '#5e168a',
    950: '#000000',
  },
}
SCSS
$custom: #5e168a;
$custom-light: #915ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5e168a",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 277.241,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38619,
    "c": 0.17635,
    "h": 307.8
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#5E168A
secondary
#6EBE3E
accent
#EF397E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E168A

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

Preview Lab → · Contrast checker → · Palette generator →

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