#5E168D#5E168D

#5E168D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.179 H 306.8°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5E168D
RGBrgb(94, 22, 141)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(33.3%, 84.4%, 0%, 44.7%)
CIE-LABlab(26.38, 51.06, -50.41)
CIE-LCHlch(26.38, 71.75, 315.37°)
OKLaboklab(38.88% 0.1073 -0.1435)
OKLCHoklch(38.88% 0.179 306.8)
XYZxyz(9.7097, 4.8767, 25.6239)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E168D #458D16
analogous
#23168D #5E168D #8D1680
triadic
#5E168D #8D5E16 #168D5E
tetradic
#5E168D #8D2316 #458D16 #16808D
square
#5E168D #8D2316 #458D16 #16808D
split-complementary
#5E168D #808D16 #168D23
monochromatic
#170523 #3B0E58 #5E168D #811EC2 #A03DE1

Accessibility & contrast

On white

10.63
#5E168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E168D
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E168D#FFFFFF#000000##FFFFFF
##5E168D1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#563753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e168d;
/* rgb */ color: rgb(94, 22, 141);
/* oklch */ color: oklch(38.9% 0.179 306.8);
Tailwind
colors: {
  custom: {
    50: '#915eaf',
    500: '#5e168d',
    950: '#000000',
  },
}
SCSS
$custom: #5e168d;
$custom-light: #915eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e168d",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 276.303,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38877,
    "c": 0.1792,
    "h": 306.8
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#5E168D
secondary
#72C13E
accent
#F03881
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E168D

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

Preview Lab → · Contrast checker → · Palette generator →

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