#5D1F8D#5D1F8D

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

Color values

HEX#5D1F8D
RGBrgb(93, 31, 141)
HSLhsl(274, 64%, 34%)
HSVhsv(274, 78%, 55%)
CMYKcmyk(34%, 78%, 0%, 44.7%)
CIE-LABlab(27.38, 47.56, -48.78)
CIE-LCHlch(27.38, 68.13, 314.27°)
OKLaboklab(39.55% 0.0984 -0.1389)
OKLCHoklch(39.55% 0.17 305.3)
XYZxyz(9.8108, 5.2303, 25.6868)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F8D #4F8D1F
analogous
#261F8D #5D1F8D #8D1F86
triadic
#5D1F8D #8D5D1F #1F8D5D
tetradic
#5D1F8D #8D261F #4F8D1F #1F868D
square
#5D1F8D #8D261F #4F8D1F #1F868D
split-complementary
#5D1F8D #868D1F #1F8D26
monochromatic
#1B0929 #3C145B #5D1F8D #7E2ABF #9C4ED8

Accessibility & contrast

On white

10.26
#5D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F8D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F8D#FFFFFF#000000##FFFFFF
##5D1F8D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1f8d;
/* rgb */ color: rgb(93, 31, 141);
/* oklch */ color: oklch(39.5% 0.170 305.3);
Tailwind
colors: {
  custom: {
    50: '#9062af',
    500: '#5d1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f8d;
$custom-light: #9062af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f8d",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 273.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39545,
    "c": 0.17021,
    "h": 305.3
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#5D1F8D
secondary
#7DBB4D
accent
#E74189
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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