#5D2C8A#5D2C8A

#5D2C8A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.151 H 304.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5D2C8A
RGBrgb(93, 44, 138)
HSLhsl(271, 52%, 36%)
HSVhsv(271, 68%, 54%)
CMYKcmyk(32.6%, 68.1%, 0%, 45.9%)
CIE-LABlab(29.32, 40.71, -43.78)
CIE-LCHlch(29.32, 59.78, 312.92°)
OKLaboklab(40.85% 0.0852 -0.1242)
OKLCHoklch(40.85% 0.151 304.4)
XYZxyz(10.0013, 5.9635, 24.6640)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C8A #598A2C
analogous
#2E2C8A #5D2C8A #8A2C88
triadic
#5D2C8A #8A5D2C #2C8A5D
tetradic
#5D2C8A #8A2E2C #598A2C #2C888A
square
#5D2C8A #8A2E2C #598A2C #2C888A
split-complementary
#5D2C8A #888A2C #2C8A2E
monochromatic
#1E0E2D #3E1D5C #5D2C8A #7C3BB8 #9A63CD

Accessibility & contrast

On white

9.58
#5D2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5D2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2C8A
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C8A#FFFFFF#000000##FFFFFF
##5D2C8A1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#0D4588
Tritanopia (blue-blind)
#554157
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2c8a;
/* rgb */ color: rgb(93, 44, 138);
/* oklch */ color: oklch(40.8% 0.151 304.4);
Tailwind
colors: {
  custom: {
    50: '#8f69ad',
    500: '#5d2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c8a;
$custom-light: #8f69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c8a",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 271.277,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40849,
    "c": 0.15066,
    "h": 304.4
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#5D2C8A
secondary
#87B45E
accent
#DB4D91
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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