#5D168A#5D168A

#5D168A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.176 H 307.3°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5D168A
RGBrgb(93, 22, 138)
HSLhsl(277, 73%, 31%)
HSVhsv(277, 84%, 54%)
CMYKcmyk(32.6%, 84.1%, 0%, 45.9%)
CIE-LABlab(25.97, 50.22, -49.22)
CIE-LCHlch(25.97, 70.32, 315.58°)
OKLaboklab(38.48% 0.1067 -0.1401)
OKLCHoklch(38.48% 0.176 307.3)
XYZxyz(9.3876, 4.7361, 24.4594)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D168A #438A16
analogous
#23168A #5D168A #8A167D
triadic
#5D168A #8A5D16 #168A5D
tetradic
#5D168A #8A2316 #438A16 #167D8A
square
#5D168A #8A2316 #438A16 #167D8A
split-complementary
#5D168A #7D8A16 #168A23
monochromatic
#160520 #390E55 #5D168A #811EBF #A03BE0

Accessibility & contrast

On white

10.78
#5D168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D168A
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D168A#FFFFFF#000000##FFFFFF
##5D168A1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d168a;
/* rgb */ color: rgb(93, 22, 138);
/* oklch */ color: oklch(38.5% 0.176 307.3);
Tailwind
colors: {
  custom: {
    50: '#905ead',
    500: '#5d168a',
    950: '#000000',
  },
}
SCSS
$custom: #5d168a;
$custom-light: #905ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5d168a",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 276.724,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38479,
    "c": 0.1761,
    "h": 307.3
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#5D168A
secondary
#70BE3E
accent
#EF397F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D168A

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

Preview Lab → · Contrast checker → · Palette generator →

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