#5D2899#5D2899

#5D2899 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.173 H 300.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5D2899
RGBrgb(93, 40, 153)
HSLhsl(268, 59%, 38%)
HSVhsv(268, 74%, 60%)
CMYKcmyk(39.2%, 73.9%, 0%, 40%)
CIE-LABlab(29.77, 46.52, -52.28)
CIE-LCHlch(29.77, 69.98, 311.66°)
OKLaboklab(41.54% 0.0871 -0.1492)
OKLCHoklch(41.54% 0.173 300.3)
XYZxyz(11.0213, 6.1445, 30.7362)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2899 #649928
analogous
#282B99 #5D2899 #962899
triadic
#5D2899 #995D28 #28995D
tetradic
#5D2899 #99282B #649928 #289996
square
#5D2899 #99282B #649928 #289996
split-complementary
#5D2899 #999628 #2B9928
monochromatic
#220F38 #401B68 #5D2899 #7A35CA #9A65D7

Accessibility & contrast

On white

9.42
#5D2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2899
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2899#FFFFFF#000000##FFFFFF
##5D28991.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#4F445E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2899;
/* rgb */ color: rgb(93, 40, 153);
/* oklch */ color: oklch(41.5% 0.173 300.3);
Tailwind
colors: {
  custom: {
    50: '#9067b8',
    500: '#5d2899',
    950: '#000000',
  },
}
SCSS
$custom: #5d2899;
$custom-light: #9067b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2899",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 268.142,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4154,
    "c": 0.17278,
    "h": 300.3
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#5D2899
secondary
#91BD60
accent
#E24699
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2899

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

Preview Lab → · Contrast checker → · Palette generator →

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