#5D2D82#5D2D82

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

Color values

HEX#5D2D82
RGBrgb(93, 45, 130)
HSLhsl(274, 49%, 34%)
HSVhsv(274, 65%, 51%)
CMYKcmyk(28.5%, 65.4%, 0%, 49%)
CIE-LABlab(28.94, 38.17, -39.40)
CIE-LCHlch(28.94, 54.86, 314.09°)
OKLaboklab(40.4% 0.0846 -0.1114)
OKLCHoklch(40.4% 0.14 307.2)
XYZxyz(9.4810, 5.8157, 21.7379)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D82 #52822D
analogous
#332D82 #5D2D82 #822D7D
triadic
#5D2D82 #825D2D #2D825D
tetradic
#5D2D82 #82332D #52822D #2D7D82
square
#5D2D82 #82332D #52822D #2D7D82
split-complementary
#5D2D82 #7D822D #2D8233
monochromatic
#1C0E27 #3C1D55 #5D2D82 #7E3DAF #9B61C8

Accessibility & contrast

On white

9.71
#5D2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2D82
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D82#FFFFFF#000000##FFFFFF
##5D2D821.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#1C4580
Tritanopia (blue-blind)
#573E53
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2d82;
/* rgb */ color: rgb(93, 45, 130);
/* oklch */ color: oklch(40.4% 0.140 307.2);
Tailwind
colors: {
  custom: {
    50: '#8e69a7',
    500: '#5d2d82',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d82;
$custom-light: #8e69a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d82",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 273.882,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40396,
    "c": 0.1399,
    "h": 307.2
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#5D2D82
secondary
#80AF5C
accent
#D8508B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5D2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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