#5D168E#5D168E

#5D168E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.180 H 305.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5D168E
RGBrgb(93, 22, 142)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 85%, 56%)
CMYKcmyk(34.5%, 84.5%, 0%, 44.3%)
CIE-LABlab(26.32, 51.13, -51.14)
CIE-LCHlch(26.32, 72.31, 314.99°)
OKLaboklab(38.83% 0.1055 -0.1457)
OKLCHoklch(38.83% 0.18 305.9)
XYZxyz(9.6825, 4.8541, 26.0128)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D168E #478E16
analogous
#21168E #5D168E #8E1683
triadic
#5D168E #8E5D16 #168E5D
tetradic
#5D168E #8E2116 #478E16 #16838E
square
#5D168E #8E2116 #478E16 #16838E
split-complementary
#5D168E #838E16 #168E21
monochromatic
#180624 #3A0E59 #5D168E #801EC3 #9E3DE1

Accessibility & contrast

On white

10.66
#5D168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D168E
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D168E#FFFFFF#000000##FFFFFF
##5D168E1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#543754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d168e;
/* rgb */ color: rgb(93, 22, 142);
/* oklch */ color: oklch(38.8% 0.180 305.9);
Tailwind
colors: {
  custom: {
    50: '#905eb0',
    500: '#5d168e',
    950: '#000000',
  },
}
SCSS
$custom: #5d168e;
$custom-light: #905eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d168e",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 275.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38827,
    "c": 0.17991,
    "h": 305.9
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#5D168E
secondary
#74C13F
accent
#F03883
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D168E

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

Preview Lab → · Contrast checker → · Palette generator →

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