#5D1C9F#5D1C9F

#5D1C9F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.191 H 300.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5D1C9F
RGBrgb(93, 28, 159)
HSLhsl(270, 70%, 37%)
HSVhsv(270, 82%, 62%)
CMYKcmyk(41.5%, 82.4%, 0%, 37.6%)
CIE-LABlab(28.54, 53.05, -57.95)
CIE-LCHlch(28.54, 78.56, 312.47°)
OKLaboklab(40.84% 0.0958 -0.1658)
OKLCHoklch(40.84% 0.191 300)
XYZxyz(11.1859, 5.6607, 33.2975)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C9F #5E9F1C
analogous
#1C1D9F #5D1C9F #9F1C9F
triadic
#5D1C9F #9F5D1C #1C9F5D
tetradic
#5D1C9F #9F1C1D #5E9F1C #1C9F9F
square
#5D1C9F #9F1C1D #5E9F1C #1C9F9F
split-complementary
#5D1C9F #9F9F1C #1D9F1C
monochromatic
#200A37 #3F136B #5D1C9F #7B25D3 #9A54E1

Accessibility & contrast

On white

9.85
#5D1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C9F
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C9F#FFFFFF#000000##FFFFFF
##5D1C9F1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#4D415F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1c9f;
/* rgb */ color: rgb(93, 28, 159);
/* oklch */ color: oklch(40.8% 0.191 300.0);
Tailwind
colors: {
  custom: {
    50: '#9262bc',
    500: '#5d1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c9f;
$custom-light: #9262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c9f",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 269.771,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40836,
    "c": 0.19144,
    "h": 300
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#5D1C9F
secondary
#8CC453
accent
#ED3B95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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