#5D2399#5D2399

#5D2399 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.178 H 301.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5D2399
RGBrgb(93, 35, 153)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 77%, 60%)
CMYKcmyk(39.2%, 77.1%, 0%, 40%)
CIE-LABlab(28.98, 48.78, -53.58)
CIE-LCHlch(28.98, 72.46, 312.32°)
OKLaboklab(40.98% 0.0918 -0.153)
OKLCHoklch(40.98% 0.178 301)
XYZxyz(10.8636, 5.8290, 30.6836)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2399 #5F9923
analogous
#232499 #5D2399 #982399
triadic
#5D2399 #995D23 #23995D
tetradic
#5D2399 #992324 #5F9923 #239998
square
#5D2399 #992324 #5F9923 #239998
split-complementary
#5D2399 #999823 #249923
monochromatic
#200C35 #3F1867 #5D2399 #7B2ECB #9A5DDA

Accessibility & contrast

On white

9.70
#5D2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2399
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2399#FFFFFF#000000##FFFFFF
##5D23991.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4F425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2399;
/* rgb */ color: rgb(93, 35, 153);
/* oklch */ color: oklch(41.0% 0.178 301.0);
Tailwind
colors: {
  custom: {
    50: '#9164b8',
    500: '#5d2399',
    950: '#000000',
  },
}
SCSS
$custom: #5d2399;
$custom-light: #9164b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2399",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 269.492,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40978,
    "c": 0.17843,
    "h": 301
  },
  "luminance": 0.05829
}

Semantic roles & 50–950 ramp

primary
#5D2399
secondary
#8DBE59
accent
#E64295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2399

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

Preview Lab → · Contrast checker → · Palette generator →

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