#5D2A84#5D2A84

#5D2A84 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.147 H 307.0°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5D2A84
RGBrgb(93, 42, 132)
HSLhsl(274, 52%, 34%)
HSVhsv(274, 68%, 52%)
CMYKcmyk(29.5%, 68.2%, 0%, 48.2%)
CIE-LABlab(28.51, 40.24, -41.35)
CIE-LCHlch(28.51, 57.70, 314.22°)
OKLaboklab(40.13% 0.0882 -0.1171)
OKLCHoklch(40.13% 0.147 307)
XYZxyz(9.5061, 5.6491, 22.4149)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2A84 #51842A
analogous
#302A84 #5D2A84 #842A7E
triadic
#5D2A84 #845D2A #2A845D
tetradic
#5D2A84 #84302A #51842A #2A7E84
square
#5D2A84 #84302A #51842A #2A7E84
split-complementary
#5D2A84 #7E842A #2A8430
monochromatic
#1C0C27 #3C1B56 #5D2A84 #7E39B2 #9C5DCB

Accessibility & contrast

On white

9.86
#5D2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2A84
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2A84#FFFFFF#000000##FFFFFF
##5D2A841.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#154482
Tritanopia (blue-blind)
#573D53
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2a84;
/* rgb */ color: rgb(93, 42, 132);
/* oklch */ color: oklch(40.1% 0.147 307.0);
Tailwind
colors: {
  custom: {
    50: '#8e67a8',
    500: '#5d2a84',
    950: '#000000',
  },
}
SCSS
$custom: #5d2a84;
$custom-light: #8e67a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2a84",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 274,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.14661,
    "h": 307
  },
  "luminance": 0.05649
}

Semantic roles & 50–950 ramp

primary
#5D2A84
secondary
#7FB159
accent
#DB4D8A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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