#5E168F#5E168F

#5E168F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.1% C 0.181 H 306.1°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5E168F
RGBrgb(94, 22, 143)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 85%, 56%)
CMYKcmyk(34.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(26.55, 51.51, -51.37)
CIE-LCHlch(26.55, 72.75, 315.08°)
OKLaboklab(39.05% 0.1067 -0.1464)
OKLCHoklch(39.05% 0.181 306.1)
XYZxyz(9.8598, 4.9368, 26.4147)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E168F #478F16
analogous
#21168F #5E168F #8F1684
triadic
#5E168F #8F5E16 #168F5E
tetradic
#5E168F #8F2116 #478F16 #16848F
square
#5E168F #8F2116 #478F16 #16848F
split-complementary
#5E168F #848F16 #168F21
monochromatic
#180625 #3B0E5A #5E168F #811EC4 #9F3EE1

Accessibility & contrast

On white

10.57
#5E168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5E168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E168F
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E168F#FFFFFF#000000##FFFFFF
##5E168F1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#553854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e168f;
/* rgb */ color: rgb(94, 22, 143);
/* oklch */ color: oklch(39.1% 0.181 306.1);
Tailwind
colors: {
  custom: {
    50: '#915eb1',
    500: '#5e168f',
    950: '#000000',
  },
}
SCSS
$custom: #5e168f;
$custom-light: #915eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e168f",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 275.702,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39051,
    "c": 0.18111,
    "h": 306.1
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#5E168F
secondary
#74C13F
accent
#F03882
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E168F

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

Preview Lab → · Contrast checker → · Palette generator →

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