#5D2B78#5D2B78

#5D2B78 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.131 H 311.8°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5D2B78
RGBrgb(93, 43, 120)
HSLhsl(279, 47%, 32%)
HSVhsv(279, 64%, 47%)
CMYKcmyk(22.5%, 64.2%, 0%, 52.9%)
CIE-LABlab(27.88, 36.80, -34.82)
CIE-LCHlch(27.88, 50.66, 316.58°)
OKLaboklab(39.41% 0.0876 -0.0979)
OKLCHoklch(39.41% 0.131 311.8)
XYZxyz(8.7676, 5.4112, 18.3483)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B78 #46782B
analogous
#372B78 #5D2B78 #782B6D
triadic
#5D2B78 #785D2B #2B785D
tetradic
#5D2B78 #78372B #46782B #2B6D78
square
#5D2B78 #78372B #46782B #2B6D78
split-complementary
#5D2B78 #6D782B #2B7837
monochromatic
#170B1E #3A1B4B #5D2B78 #803BA5 #9F5AC4

Accessibility & contrast

On white

10.09
#5D2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B78
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B78#FFFFFF#000000##FFFFFF
##5D2B781.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3F7A
Deuteranopia (green-blind)
#254376
Tritanopia (blue-blind)
#5A3A4D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d2b78;
/* rgb */ color: rgb(93, 43, 120);
/* oklch */ color: oklch(39.4% 0.131 311.8);
Tailwind
colors: {
  custom: {
    50: '#8d679f',
    500: '#5d2b78',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b78;
$custom-light: #8d679f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b78",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 278.961,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39407,
    "c": 0.13141,
    "h": 311.8
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#5D2B78
secondary
#73AA55
accent
#D75180
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5D2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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