#5D3078#5D3078

#5D3078 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.123 H 310.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5D3078
RGBrgb(93, 48, 120)
HSLhsl(278, 43%, 33%)
HSVhsv(278, 60%, 47%)
CMYKcmyk(22.5%, 60%, 0%, 52.9%)
CIE-LABlab(28.90, 34.05, -33.19)
CIE-LCHlch(28.90, 47.55, 315.73°)
OKLaboklab(40.15% 0.0807 -0.0932)
OKLCHoklch(40.15% 0.123 310.9)
XYZxyz(8.9607, 5.7973, 18.4126)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3078 #4B7830
analogous
#393078 #5D3078 #78306F
triadic
#5D3078 #785D30 #30785D
tetradic
#5D3078 #783930 #4B7830 #306F78
square
#5D3078 #783930 #4B7830 #306F78
split-complementary
#5D3078 #6F7830 #307839
monochromatic
#190D21 #3B1F4C #5D3078 #7F41A4 #9D62C0

Accessibility & contrast

On white

9.72
#5D3078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D3078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3078
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3078#FFFFFF#000000##FFFFFF
##5D30781.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427A
Deuteranopia (green-blind)
#2A4576
Tritanopia (blue-blind)
#5A3D4F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d3078;
/* rgb */ color: rgb(93, 48, 120);
/* oklch */ color: oklch(40.2% 0.123 310.9);
Tailwind
colors: {
  custom: {
    50: '#8d6b9f',
    500: '#5d3078',
    950: '#000000',
  },
}
SCSS
$custom: #5d3078;
$custom-light: #8d6b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3078",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 120
  },
  "hsl": {
    "h": 277.5,
    "s": 42.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4015,
    "c": 0.12331,
    "h": 310.9
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#5D3078
secondary
#79A75C
accent
#D35584
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070E
muted
#7D7A7E

Preview Lab

Preview with #5D3078

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

Preview Lab → · Contrast checker → · Palette generator →

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