#5D2C84#5D2C84

#5D2C84 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.144 H 306.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5D2C84
RGBrgb(93, 44, 132)
HSLhsl(273, 50%, 35%)
HSVhsv(273, 67%, 52%)
CMYKcmyk(29.5%, 66.7%, 0%, 48.2%)
CIE-LABlab(28.89, 39.20, -40.74)
CIE-LCHlch(28.89, 56.54, 313.89°)
OKLaboklab(40.4% 0.0858 -0.1153)
OKLCHoklch(40.4% 0.144 306.6)
XYZxyz(9.5789, 5.7946, 22.4392)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C84 #53842C
analogous
#312C84 #5D2C84 #842C7F
triadic
#5D2C84 #845D2C #2C845D
tetradic
#5D2C84 #84312C #53842C #2C7F84
square
#5D2C84 #84312C #53842C #2C7F84
split-complementary
#5D2C84 #7F842C #2C8431
monochromatic
#1C0D28 #3D1D56 #5D2C84 #7D3BB2 #9B60CA

Accessibility & contrast

On white

9.73
#5D2C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D2C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2C84
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C84#FFFFFF#000000##FFFFFF
##5D2C841.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004287
Deuteranopia (green-blind)
#184482
Tritanopia (blue-blind)
#573E54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2c84;
/* rgb */ color: rgb(93, 44, 132);
/* oklch */ color: oklch(40.4% 0.144 306.6);
Tailwind
colors: {
  custom: {
    50: '#8e68a8',
    500: '#5d2c84',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c84;
$custom-light: #8e68a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c84",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 273.409,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40401,
    "c": 0.14371,
    "h": 306.6
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#5D2C84
secondary
#81B05C
accent
#DA4E8C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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