#5D2799#5D2799

#5D2799 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.174 H 300.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5D2799
RGBrgb(93, 39, 153)
HSLhsl(268, 59%, 38%)
HSVhsv(268, 75%, 60%)
CMYKcmyk(39.2%, 74.5%, 0%, 40%)
CIE-LABlab(29.61, 46.99, -52.55)
CIE-LCHlch(29.61, 70.49, 311.80°)
OKLaboklab(41.42% 0.0881 -0.15)
OKLCHoklch(41.42% 0.174 300.4)
XYZxyz(10.9881, 6.0780, 30.7251)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2799 #639927
analogous
#272A99 #5D2799 #962799
triadic
#5D2799 #995D27 #27995D
tetradic
#5D2799 #99272A #639927 #279996
square
#5D2799 #99272A #639927 #279996
split-complementary
#5D2799 #999627 #2A9927
monochromatic
#220E37 #3F1B68 #5D2799 #7B33CA #9A63D7

Accessibility & contrast

On white

9.48
#5D2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2799
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2799#FFFFFF#000000##FFFFFF
##5D27991.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2799;
/* rgb */ color: rgb(93, 39, 153);
/* oklch */ color: oklch(41.4% 0.174 300.4);
Tailwind
colors: {
  custom: {
    50: '#9166b8',
    500: '#5d2799',
    950: '#000000',
  },
}
SCSS
$custom: #5d2799;
$custom-light: #9166b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2799",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 268.421,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41422,
    "c": 0.17394,
    "h": 300.4
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#5D2799
secondary
#90BD5F
accent
#E34598
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2799

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

Preview Lab → · Contrast checker → · Palette generator →

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