#5D2D8E#5D2D8E

#5D2D8E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.154 H 302.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#5D2D8E
RGBrgb(93, 45, 142)
HSLhsl(270, 52%, 37%)
HSVhsv(270, 68%, 56%)
CMYKcmyk(34.5%, 68.3%, 0%, 44.3%)
CIE-LABlab(29.80, 41.21, -45.47)
CIE-LCHlch(29.80, 61.36, 312.18°)
OKLaboklab(41.29% 0.0836 -0.1292)
OKLCHoklch(41.29% 0.154 302.9)
XYZxyz(10.3339, 6.1569, 26.2299)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D8E #5E8E2D
analogous
#2D2D8E #5D2D8E #8E2D8E
triadic
#5D2D8E #8E5D2D #2D8E5D
tetradic
#5D2D8E #8E2D2D #5E8E2D #2D8E8E
square
#5D2D8E #8E2D2D #5E8E2D #2D8E8E
split-complementary
#5D2D8E #8E8E2D #2D8E2D
monochromatic
#201031 #3F1E60 #5D2D8E #7B3CBC #9A67CF

Accessibility & contrast

On white

9.41
#5D2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5D2D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D8E
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D8E#FFFFFF#000000##FFFFFF
##5D2D8E1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#04468C
Tritanopia (blue-blind)
#534359
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2d8e;
/* rgb */ color: rgb(93, 45, 142);
/* oklch */ color: oklch(41.3% 0.154 302.9);
Tailwind
colors: {
  custom: {
    50: '#8f69b0',
    500: '#5d2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d8e;
$custom-light: #8f69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d8e",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 269.691,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41291,
    "c": 0.15389,
    "h": 302.9
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#5D2D8E
secondary
#8CB561
accent
#DB4C95
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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