#5D168B#5D168B

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

Color values

HEX#5D168B
RGBrgb(93, 22, 139)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(33.1%, 84.2%, 0%, 45.5%)
CIE-LABlab(26.06, 50.45, -49.70)
CIE-LCHlch(26.06, 70.82, 315.43°)
OKLaboklab(38.57% 0.1064 -0.1415)
OKLCHoklch(38.57% 0.177 306.9)
XYZxyz(9.4603, 4.7652, 24.8425)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D168B #448B16
analogous
#22168B #5D168B #8B167F
triadic
#5D168B #8B5D16 #168B5D
tetradic
#5D168B #8B2216 #448B16 #167F8B
square
#5D168B #8B2216 #448B16 #167F8B
split-complementary
#5D168B #7F8B16 #168B22
monochromatic
#160521 #3A0E56 #5D168B #801EC0 #9F3BE0

Accessibility & contrast

On white

10.75
#5D168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D168B
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D168B#FFFFFF#000000##FFFFFF
##5D168B1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d168b;
/* rgb */ color: rgb(93, 22, 139);
/* oklch */ color: oklch(38.6% 0.177 306.9);
Tailwind
colors: {
  custom: {
    50: '#905eae',
    500: '#5d168b',
    950: '#000000',
  },
}
SCSS
$custom: #5d168b;
$custom-light: #905eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d168b",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 276.41,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38566,
    "c": 0.17705,
    "h": 306.9
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#5D168B
secondary
#71BF3E
accent
#EF3880
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D168B

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

Preview Lab → · Contrast checker → · Palette generator →

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