#5D1984#5D1984

#5D1984 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.167 H 309.2°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5D1984
RGBrgb(93, 25, 132)
HSLhsl(278, 68%, 31%)
HSVhsv(278, 81%, 52%)
CMYKcmyk(29.5%, 81.1%, 0%, 48.2%)
CIE-LABlab(25.83, 47.82, -45.69)
CIE-LCHlch(25.83, 66.14, 316.30°)
OKLaboklab(38.22% 0.1059 -0.1297)
OKLCHoklch(38.22% 0.167 309.2)
XYZxyz(9.0258, 4.6885, 22.2548)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1984 #408419
analogous
#271984 #5D1984 #841975
triadic
#5D1984 #845D19 #19845D
tetradic
#5D1984 #842719 #408419 #197584
square
#5D1984 #842719 #408419 #197584
split-complementary
#5D1984 #758419 #198427
monochromatic
#14061D #390F51 #5D1984 #8123B7 #A13DDA

Accessibility & contrast

On white

10.84
#5D1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1984
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1984#FFFFFF#000000##FFFFFF
##5D19841.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#57344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1984;
/* rgb */ color: rgb(93, 25, 132);
/* oklch */ color: oklch(38.2% 0.167 309.2);
Tailwind
colors: {
  custom: {
    50: '#8f5fa9',
    500: '#5d1984',
    950: '#000000',
  },
}
SCSS
$custom: #5d1984;
$custom-light: #8f5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1984",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 278.131,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38225,
    "c": 0.16749,
    "h": 309.2
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#5D1984
secondary
#6CB841
accent
#EB3D7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1984

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

Preview Lab → · Contrast checker → · Palette generator →

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