#5D1E7E#5D1E7E

#5D1E7E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.156 H 311.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5D1E7E
RGBrgb(93, 30, 126)
HSLhsl(279, 62%, 31%)
HSVhsv(279, 76%, 49%)
CMYKcmyk(26.2%, 76.2%, 0%, 50.6%)
CIE-LABlab(26.05, 44.48, -41.56)
CIE-LCHlch(26.05, 60.87, 316.94°)
OKLaboklab(38.23% 0.1025 -0.1176)
OKLCHoklch(38.23% 0.156 311.1)
XYZxyz(8.7437, 4.7623, 20.1932)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E7E #3F7E1E
analogous
#2D1E7E #5D1E7E #7E1E6F
triadic
#5D1E7E #7E5D1E #1E7E5D
tetradic
#5D1E7E #7E2D1E #3F7E1E #1E6F7E
square
#5D1E7E #7E2D1E #3F7E1E #1E6F7E
split-complementary
#5D1E7E #6F7E1E #1E7E2D
monochromatic
#14061B #39124D #5D1E7E #812AAF #A144D2

Accessibility & contrast

On white

10.76
#5D1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E7E
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E7E#FFFFFF#000000##FFFFFF
##5D1E7E1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#0C3F7C
Tritanopia (blue-blind)
#59344C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1e7e;
/* rgb */ color: rgb(93, 30, 126);
/* oklch */ color: oklch(38.2% 0.156 311.1);
Tailwind
colors: {
  custom: {
    50: '#8f61a4',
    500: '#5d1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e7e;
$custom-light: #8f61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e7e",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 279.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3823,
    "c": 0.156,
    "h": 311.1
  },
  "luminance": 0.04762
}

Semantic roles & 50–950 ramp

primary
#5D1E7E
secondary
#6BB147
accent
#E5437B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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