#5D2D84#5D2D84

#5D2D84 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.142 H 306.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5D2D84
RGBrgb(93, 45, 132)
HSLhsl(273, 49%, 35%)
HSVhsv(273, 66%, 52%)
CMYKcmyk(29.5%, 65.9%, 0%, 48.2%)
CIE-LABlab(29.08, 38.67, -40.43)
CIE-LCHlch(29.08, 55.94, 313.72°)
OKLaboklab(40.54% 0.0845 -0.1144)
OKLCHoklch(40.54% 0.142 306.5)
XYZxyz(9.6166, 5.8700, 22.4517)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D84 #54842D
analogous
#312D84 #5D2D84 #842D80
triadic
#5D2D84 #845D2D #2D845D
tetradic
#5D2D84 #84312D #54842D #2D8084
square
#5D2D84 #84312D #54842D #2D8084
split-complementary
#5D2D84 #80842D #2D8431
monochromatic
#1D0E29 #3D1D56 #5D2D84 #7D3DB2 #9B62C9

Accessibility & contrast

On white

9.66
#5D2D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D2D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D84
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D84#FFFFFF#000000##FFFFFF
##5D2D841.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#1A4582
Tritanopia (blue-blind)
#563F54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2d84;
/* rgb */ color: rgb(93, 45, 132);
/* oklch */ color: oklch(40.5% 0.142 306.5);
Tailwind
colors: {
  custom: {
    50: '#8e69a8',
    500: '#5d2d84',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d84;
$custom-light: #8e69a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d84",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 273.103,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40541,
    "c": 0.14224,
    "h": 306.5
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#5D2D84
secondary
#82B05D
accent
#D94F8D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2D84

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

Preview Lab → · Contrast checker → · Palette generator →

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