#5D2A82#5D2A82

#5D2A82 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.144 H 307.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5D2A82
RGBrgb(93, 42, 130)
HSLhsl(275, 51%, 34%)
HSVhsv(275, 68%, 51%)
CMYKcmyk(28.5%, 67.7%, 0%, 49%)
CIE-LABlab(28.37, 39.75, -40.33)
CIE-LCHlch(28.37, 56.63, 314.58°)
OKLaboklab(39.98% 0.0884 -0.1141)
OKLCHoklch(39.98% 0.144 307.8)
XYZxyz(9.3706, 5.5949, 21.7010)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2A82 #4F822A
analogous
#312A82 #5D2A82 #822A7B
triadic
#5D2A82 #825D2A #2A825D
tetradic
#5D2A82 #82312A #4F822A #2A7B82
square
#5D2A82 #82312A #4F822A #2A7B82
split-complementary
#5D2A82 #7B822A #2A8231
monochromatic
#1B0C25 #3C1B54 #5D2A82 #7E39B0 #9C5CCA

Accessibility & contrast

On white

9.91
#5D2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5D2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2A82
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2A82#FFFFFF#000000##FFFFFF
##5D2A821.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#184380
Tritanopia (blue-blind)
#573C52
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2a82;
/* rgb */ color: rgb(93, 42, 130);
/* oklch */ color: oklch(40.0% 0.144 307.8);
Tailwind
colors: {
  custom: {
    50: '#8e67a7',
    500: '#5d2a82',
    950: '#000000',
  },
}
SCSS
$custom: #5d2a82;
$custom-light: #8e67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2a82",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 274.773,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3998,
    "c": 0.14433,
    "h": 307.8
  },
  "luminance": 0.05595
}

Semantic roles & 50–950 ramp

primary
#5D2A82
secondary
#7DB058
accent
#DB4D89
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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