#5D1C99#5D1C99

#5D1C99 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.185 H 301.8°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5D1C99
RGBrgb(93, 28, 153)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 82%, 60%)
CMYKcmyk(39.2%, 81.7%, 0%, 40%)
CIE-LABlab(28.00, 51.60, -55.17)
CIE-LCHlch(28.00, 75.54, 313.09°)
OKLaboklab(40.3% 0.0977 -0.1576)
OKLCHoklch(40.3% 0.185 301.8)
XYZxyz(10.6778, 5.4575, 30.6217)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C99 #58991C
analogous
#1E1C99 #5D1C99 #991C96
triadic
#5D1C99 #995D1C #1C995D
tetradic
#5D1C99 #991E1C #58991C #1C9699
square
#5D1C99 #991E1C #58991C #1C9699
split-complementary
#5D1C99 #96991C #1C991E
monochromatic
#1E0932 #3E1365 #5D1C99 #7C25CD #9B50DF

Accessibility & contrast

On white

10.04
#5D1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D1C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C99
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C99#FFFFFF#000000##FFFFFF
##5D1C991.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#503F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1c99;
/* rgb */ color: rgb(93, 28, 153);
/* oklch */ color: oklch(40.3% 0.185 301.8);
Tailwind
colors: {
  custom: {
    50: '#9161b8',
    500: '#5d1c99',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c99;
$custom-light: #9161b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c99",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 271.2,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40296,
    "c": 0.18542,
    "h": 301.8
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#5D1C99
secondary
#86C24F
accent
#EC3C90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5D1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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