#5D1684#5D1684

#5D1684 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.170 H 309.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5D1684
RGBrgb(93, 22, 132)
HSLhsl(279, 71%, 30%)
HSVhsv(279, 83%, 52%)
CMYKcmyk(29.5%, 83.3%, 0%, 48.2%)
CIE-LABlab(25.46, 48.88, -46.29)
CIE-LCHlch(25.46, 67.32, 316.56°)
OKLaboklab(37.97% 0.1084 -0.1315)
OKLCHoklch(37.97% 0.17 309.5)
XYZxyz(8.9651, 4.5671, 22.2346)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1684 #3D8416
analogous
#261684 #5D1684 #841674
triadic
#5D1684 #845D16 #16845D
tetradic
#5D1684 #842616 #3D8416 #167484
square
#5D1684 #842616 #3D8416 #167484
split-complementary
#5D1684 #748416 #168426
monochromatic
#13051B #380D50 #5D1684 #821FB8 #A237DE

Accessibility & contrast

On white

10.98
#5D1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1684
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1684#FFFFFF#000000##FFFFFF
##5D16841.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#57334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1684;
/* rgb */ color: rgb(93, 22, 132);
/* oklch */ color: oklch(38.0% 0.170 309.5);
Tailwind
colors: {
  custom: {
    50: '#905ea9',
    500: '#5d1684',
    950: '#000000',
  },
}
SCSS
$custom: #5d1684;
$custom-light: #905ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1684",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 278.727,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3797,
    "c": 0.17038,
    "h": 309.5
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#5D1684
secondary
#69B83D
accent
#EE3A7A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1684

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

Preview Lab → · Contrast checker → · Palette generator →

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