#5D169E#5D169E

#5D169E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.195 H 300.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5D169E
RGBrgb(93, 22, 158)
HSLhsl(271, 76%, 35%)
HSVhsv(271, 86%, 62%)
CMYKcmyk(41.1%, 86.1%, 0%, 38%)
CIE-LABlab(27.76, 54.82, -58.62)
CIE-LCHlch(27.76, 80.26, 313.08°)
OKLaboklab(40.27% 0.1001 -0.1677)
OKLCHoklch(40.27% 0.195 300.8)
XYZxyz(10.9711, 5.3695, 32.7995)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D169E #579E16
analogous
#19169E #5D169E #9E169B
triadic
#5D169E #9E5D16 #169E5D
tetradic
#5D169E #9E1916 #579E16 #169B9E
square
#5D169E #9E1916 #579E16 #169B9E
split-complementary
#5D169E #9B9E16 #169E19
monochromatic
#1E0733 #3D0F68 #5D169E #7D1DD4 #9B49E6

Accessibility & contrast

On white

10.13
#5D169E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D169E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D169E
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D169E#FFFFFF#000000##FFFFFF
##5D169E1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4E3F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d169e;
/* rgb */ color: rgb(93, 22, 158);
/* oklch */ color: oklch(40.3% 0.195 300.8);
Tailwind
colors: {
  custom: {
    50: '#925fbc',
    500: '#5d169e',
    950: '#000000',
  },
}
SCSS
$custom: #5d169e;
$custom-light: #925fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d169e",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 158
  },
  "hsl": {
    "h": 271.324,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40271,
    "c": 0.19528,
    "h": 300.8
  },
  "luminance": 0.0537
}

Semantic roles & 50–950 ramp

primary
#5D169E
secondary
#85C749
accent
#F23690
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D169E

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

Preview Lab → · Contrast checker → · Palette generator →

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