#5D2F78#5D2F78

#5D2F78 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.125 H 311.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5D2F78
RGBrgb(93, 47, 120)
HSLhsl(278, 44%, 33%)
HSVhsv(278, 61%, 47%)
CMYKcmyk(22.5%, 60.8%, 0%, 52.9%)
CIE-LABlab(28.69, 34.61, -33.53)
CIE-LCHlch(28.69, 48.19, 315.91°)
OKLaboklab(40% 0.0821 -0.0942)
OKLCHoklch(40% 0.125 311.1)
XYZxyz(8.9203, 5.7164, 18.3991)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F78 #4A782F
analogous
#382F78 #5D2F78 #782F6F
triadic
#5D2F78 #785D2F #2F785D
tetradic
#5D2F78 #78382F #4A782F #2F6F78
square
#5D2F78 #78382F #4A782F #2F6F78
split-complementary
#5D2F78 #6F782F #2F7838
monochromatic
#190D20 #3B1E4C #5D2F78 #7F40A4 #9D60C1

Accessibility & contrast

On white

9.80
#5D2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F78
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F78#FFFFFF#000000##FFFFFF
##5D2F781.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16417A
Deuteranopia (green-blind)
#294576
Tritanopia (blue-blind)
#5A3C4F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2f78;
/* rgb */ color: rgb(93, 47, 120);
/* oklch */ color: oklch(40.0% 0.125 311.1);
Tailwind
colors: {
  custom: {
    50: '#8d6a9f',
    500: '#5d2f78',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f78;
$custom-light: #8d6a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f78",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 277.808,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39996,
    "c": 0.12497,
    "h": 311.1
  },
  "luminance": 0.05716
}

Semantic roles & 50–950 ramp

primary
#5D2F78
secondary
#77A85B
accent
#D35483
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5D2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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