#5D2C8D#5D2C8D

#5D2C8D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.154 H 303.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5D2C8D
RGBrgb(93, 44, 141)
HSLhsl(270, 52%, 36%)
HSVhsv(270, 69%, 55%)
CMYKcmyk(34%, 68.8%, 0%, 44.7%)
CIE-LABlab(29.54, 41.47, -45.28)
CIE-LCHlch(29.54, 61.40, 312.49°)
OKLaboklab(41.08% 0.0849 -0.1286)
OKLCHoklch(41.08% 0.154 303.4)
XYZxyz(10.2215, 6.0516, 25.8237)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C8D #5C8D2C
analogous
#2D2C8D #5D2C8D #8D2C8D
triadic
#5D2C8D #8D5D2C #2C8D5D
tetradic
#5D2C8D #8D2D2C #5C8D2C #2C8D8D
square
#5D2C8D #8D2D2C #5C8D2C #2C8D8D
split-complementary
#5D2C8D #8D8D2C #2C8D2D
monochromatic
#1F0F30 #3E1D5E #5D2C8D #7C3BBC #9A65CF

Accessibility & contrast

On white

9.50
#5D2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2C8D
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C8D#FFFFFF#000000##FFFFFF
##5D2C8D1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#04458B
Tritanopia (blue-blind)
#544259
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2c8d;
/* rgb */ color: rgb(93, 44, 141);
/* oklch */ color: oklch(41.1% 0.154 303.4);
Tailwind
colors: {
  custom: {
    50: '#8f69af',
    500: '#5d2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c8d;
$custom-light: #8f69af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c8d",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 270.309,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41079,
    "c": 0.15411,
    "h": 303.4
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#5D2C8D
secondary
#8AB560
accent
#DC4C93
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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