#5D2E79#5D2E79

#5D2E79 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.9% C 0.128 H 310.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5D2E79
RGBrgb(93, 46, 121)
HSLhsl(278, 45%, 33%)
HSVhsv(278, 62%, 47%)
CMYKcmyk(23.1%, 62%, 0%, 52.5%)
CIE-LABlab(28.54, 35.41, -34.39)
CIE-LCHlch(28.54, 49.36, 315.84°)
OKLaboklab(39.91% 0.0835 -0.0967)
OKLCHoklch(39.91% 0.128 310.8)
XYZxyz(8.9417, 5.6618, 18.7072)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E79 #4A792E
analogous
#372E79 #5D2E79 #792E6F
triadic
#5D2E79 #795D2E #2E795D
tetradic
#5D2E79 #79372E #4A792E #2E6F79
square
#5D2E79 #79372E #4A792E #2E6F79
split-complementary
#5D2E79 #6F792E #2E7937
monochromatic
#190C20 #3B1D4D #5D2E79 #7F3FA5 #9D5FC2

Accessibility & contrast

On white

9.85
#5D2E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D2E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E79
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E79#FFFFFF#000000##FFFFFF
##5D2E791.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12417B
Deuteranopia (green-blind)
#274477
Tritanopia (blue-blind)
#5A3C4F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2e79;
/* rgb */ color: rgb(93, 46, 121);
/* oklch */ color: oklch(39.9% 0.128 310.8);
Tailwind
colors: {
  custom: {
    50: '#8d69a0',
    500: '#5d2e79',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e79;
$custom-light: #8d69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e79",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 277.6,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39913,
    "c": 0.12778,
    "h": 310.8
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#5D2E79
secondary
#77A95A
accent
#D55384
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #5D2E79

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

Preview Lab → · Contrast checker → · Palette generator →

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