#5D168D#5D168D

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

Color values

HEX#5D168D
RGBrgb(93, 22, 141)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(34%, 84.4%, 0%, 44.7%)
CIE-LABlab(26.23, 50.90, -50.66)
CIE-LCHlch(26.23, 71.82, 315.13°)
OKLaboklab(38.74% 0.1058 -0.1443)
OKLCHoklch(38.74% 0.179 306.2)
XYZxyz(9.6078, 4.8242, 25.6191)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D168D #468D16
analogous
#21168D #5D168D #8D1682
triadic
#5D168D #8D5D16 #168D5D
tetradic
#5D168D #8D2116 #468D16 #16828D
square
#5D168D #8D2116 #468D16 #16828D
split-complementary
#5D168D #828D16 #168D21
monochromatic
#170523 #3A0E58 #5D168D #801EC2 #9F3DE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D168D#FFFFFF#000000##FFFFFF
##5D168D1.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)
#003C90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#543753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d168d;
/* rgb */ color: rgb(93, 22, 141);
/* oklch */ color: oklch(38.7% 0.179 306.2);
Tailwind
colors: {
  custom: {
    50: '#905eaf',
    500: '#5d168d',
    950: '#000000',
  },
}
SCSS
$custom: #5d168d;
$custom-light: #905eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d168d",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 275.798,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38739,
    "c": 0.17896,
    "h": 306.2
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#5D168D
secondary
#73C13E
accent
#F03882
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D168D

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

Preview Lab → · Contrast checker → · Palette generator →

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