#5D1FA0#5D1FA0

#5D1FA0 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.2% C 0.190 H 299.4°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5D1FA0
RGBrgb(93, 31, 160)
HSLhsl(269, 68%, 37%)
HSVhsv(269, 81%, 63%)
CMYKcmyk(41.9%, 80.6%, 0%, 37.3%)
CIE-LABlab(29.02, 52.16, -57.78)
CIE-LCHlch(29.02, 77.84, 312.07°)
OKLaboklab(41.2% 0.0932 -0.1653)
OKLCHoklch(41.2% 0.19 299.4)
XYZxyz(11.3477, 5.8450, 33.7812)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1FA0 #62A01F
analogous
#1F22A0 #5D1FA0 #9D1FA0
triadic
#5D1FA0 #A05D1F #1FA05D
tetradic
#5D1FA0 #A01F22 #62A01F #1FA09D
square
#5D1FA0 #A01F22 #62A01F #1FA09D
split-complementary
#5D1FA0 #A09D1F #22A01F
monochromatic
#210B39 #3F156D #5D1FA0 #7B29D3 #9A5ADF

Accessibility & contrast

On white

9.68
#5D1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1FA0
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1FA0#FFFFFF#000000##FFFFFF
##5D1FA01.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#4D4360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d1fa0;
/* rgb */ color: rgb(93, 31, 160);
/* oklch */ color: oklch(41.2% 0.190 299.4);
Tailwind
colors: {
  custom: {
    50: '#9263bd',
    500: '#5d1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5d1fa0;
$custom-light: #9263bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1fa0",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 268.837,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41195,
    "c": 0.18975,
    "h": 299.4
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#5D1FA0
secondary
#8FC358
accent
#EA3D97
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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