#5D1E8E#5D1E8E

#5D1E8E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.172 H 305.1°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#5D1E8E
RGBrgb(93, 30, 142)
HSLhsl(274, 65%, 34%)
HSVhsv(274, 79%, 56%)
CMYKcmyk(34.5%, 78.9%, 0%, 44.3%)
CIE-LABlab(27.32, 48.20, -49.50)
CIE-LCHlch(27.32, 69.09, 314.24°)
OKLaboklab(39.53% 0.0991 -0.141)
OKLCHoklch(39.53% 0.172 305.1)
XYZxyz(9.8599, 5.2088, 26.0719)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E8E #4F8E1E
analogous
#251E8E #5D1E8E #8E1E87
triadic
#5D1E8E #8E5D1E #1E8E5D
tetradic
#5D1E8E #8E251E #4F8E1E #1E878E
square
#5D1E8E #8E251E #4F8E1E #1E878E
split-complementary
#5D1E8E #878E1E #1E8E25
monochromatic
#1B0929 #3C135B #5D1E8E #7E29C1 #9C4DD9

Accessibility & contrast

On white

10.29
#5D1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E8E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E8E#FFFFFF#000000##FFFFFF
##5D1E8E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#543B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1e8e;
/* rgb */ color: rgb(93, 30, 142);
/* oklch */ color: oklch(39.5% 0.172 305.1);
Tailwind
colors: {
  custom: {
    50: '#9061b0',
    500: '#5d1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e8e;
$custom-light: #9061b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e8e",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 273.75,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39529,
    "c": 0.17231,
    "h": 305.1
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#5D1E8E
secondary
#7DBC4C
accent
#E84089
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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