#5E168E#5E168E

#5E168E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.180 H 306.4°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5E168E
RGBrgb(94, 22, 142)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 85%, 56%)
CMYKcmyk(33.8%, 84.5%, 0%, 44.3%)
CIE-LABlab(26.47, 51.29, -50.89)
CIE-LCHlch(26.47, 72.25, 315.22°)
OKLaboklab(38.96% 0.107 -0.145)
OKLCHoklch(38.96% 0.18 306.4)
XYZxyz(9.7844, 4.9066, 26.0176)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E168E #468E16
analogous
#22168E #5E168E #8E1682
triadic
#5E168E #8E5E16 #168E5E
tetradic
#5E168E #8E2216 #468E16 #16828E
square
#5E168E #8E2216 #468E16 #16828E
split-complementary
#5E168E #828E16 #168E22
monochromatic
#180624 #3B0E59 #5E168E #811EC3 #A03DE1

Accessibility & contrast

On white

10.60
#5E168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E168E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E168E#FFFFFF#000000##FFFFFF
##5E168E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#553754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e168e;
/* rgb */ color: rgb(94, 22, 142);
/* oklch */ color: oklch(39.0% 0.180 306.4);
Tailwind
colors: {
  custom: {
    50: '#915eb0',
    500: '#5e168e',
    950: '#000000',
  },
}
SCSS
$custom: #5e168e;
$custom-light: #915eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e168e",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 276,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38964,
    "c": 0.18016,
    "h": 306.4
  },
  "luminance": 0.04906
}

Semantic roles & 50–950 ramp

primary
#5E168E
secondary
#73C13F
accent
#F03882
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E168E

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

Preview Lab → · Contrast checker → · Palette generator →

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