#5D1F96#5D1F96

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

Color values

HEX#5D1F96
RGBrgb(93, 31, 150)
HSLhsl(271, 66%, 35%)
HSVhsv(271, 79%, 59%)
CMYKcmyk(38%, 79.3%, 0%, 41.2%)
CIE-LABlab(28.14, 49.72, -53.11)
CIE-LCHlch(28.14, 72.75, 313.11°)
OKLaboklab(40.31% 0.0961 -0.1516)
OKLCHoklch(40.31% 0.179 302.4)
XYZxyz(10.5079, 5.5091, 29.3580)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F96 #58961F
analogous
#221F96 #5D1F96 #961F93
triadic
#5D1F96 #965D1F #1F965D
tetradic
#5D1F96 #96221F #58961F #1F9396
square
#5D1F96 #96221F #58961F #1F9396
split-complementary
#5D1F96 #93961F #1F9622
monochromatic
#1E0A31 #3E1563 #5D1F96 #7C29C9 #9B54DC

Accessibility & contrast

On white

9.99
#5D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F96
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F96#FFFFFF#000000##FFFFFF
##5D1F961.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#513F5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1f96;
/* rgb */ color: rgb(93, 31, 150);
/* oklch */ color: oklch(40.3% 0.179 302.4);
Tailwind
colors: {
  custom: {
    50: '#9162b6',
    500: '#5d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f96;
$custom-light: #9162b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f96",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 271.261,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40311,
    "c": 0.17948,
    "h": 302.4
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#5D1F96
secondary
#86BF52
accent
#E93F90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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