#5D2790#5D2790

#5D2790 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.164 H 303.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5D2790
RGBrgb(93, 39, 144)
HSLhsl(271, 57%, 36%)
HSVhsv(271, 73%, 56%)
CMYKcmyk(35.4%, 72.9%, 0%, 43.5%)
CIE-LABlab(28.88, 44.72, -48.20)
CIE-LCHlch(28.88, 65.75, 312.85°)
OKLaboklab(40.68% 0.0899 -0.1372)
OKLCHoklch(40.68% 0.164 303.2)
XYZxyz(10.2726, 5.7918, 26.9569)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2790 #5A9027
analogous
#282790 #5D2790 #90278E
triadic
#5D2790 #905D27 #27905D
tetradic
#5D2790 #902827 #5A9027 #278E90
square
#5D2790 #902827 #5A9027 #278E90
split-complementary
#5D2790 #8E9027 #279028
monochromatic
#1F0D30 #3E1A60 #5D2790 #7C34C0 #9A5ED3

Accessibility & contrast

On white

9.73
#5D2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2790
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2790#FFFFFF#000000##FFFFFF
##5D27901.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#534059
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2790;
/* rgb */ color: rgb(93, 39, 144);
/* oklch */ color: oklch(40.7% 0.164 303.2);
Tailwind
colors: {
  custom: {
    50: '#9066b1',
    500: '#5d2790',
    950: '#000000',
  },
}
SCSS
$custom: #5d2790;
$custom-light: #9066b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2790",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 270.857,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.16405,
    "h": 303.2
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#5D2790
secondary
#88B95A
accent
#E14792
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2790

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

Preview Lab → · Contrast checker → · Palette generator →

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