#5E168B#5E168B

#5E168B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.177 H 307.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5E168B
RGBrgb(94, 22, 139)
HSLhsl(277, 73%, 32%)
HSVhsv(277, 84%, 55%)
CMYKcmyk(32.4%, 84.2%, 0%, 45.5%)
CIE-LABlab(26.21, 50.61, -49.44)
CIE-LCHlch(26.21, 70.75, 315.67°)
OKLaboklab(38.7% 0.1079 -0.1407)
OKLCHoklch(38.7% 0.177 307.5)
XYZxyz(9.5622, 4.8177, 24.8473)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E168B #438B16
analogous
#24168B #5E168B #8B167E
triadic
#5E168B #8B5E16 #168B5E
tetradic
#5E168B #8B2416 #438B16 #167E8B
square
#5E168B #8B2416 #438B16 #167E8B
split-complementary
#5E168B #7E8B16 #168B24
monochromatic
#170521 #3A0E56 #5E168B #821EC0 #A13BE0

Accessibility & contrast

On white

10.69
#5E168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E168B
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E168B#FFFFFF#000000##FFFFFF
##5E168B1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#563652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e168b;
/* rgb */ color: rgb(94, 22, 139);
/* oklch */ color: oklch(38.7% 0.177 307.5);
Tailwind
colors: {
  custom: {
    50: '#915eae',
    500: '#5e168b',
    950: '#000000',
  },
}
SCSS
$custom: #5e168b;
$custom-light: #915eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e168b",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 276.923,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.17731,
    "h": 307.5
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#5E168B
secondary
#70BF3E
accent
#EF387F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E168B

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

Preview Lab → · Contrast checker → · Palette generator →

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