#5D1FA6#5D1FA6

#5D1FA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.196 H 297.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5D1FA6
RGBrgb(93, 31, 166)
HSLhsl(268, 69%, 39%)
HSVhsv(268, 81%, 65%)
CMYKcmyk(44%, 81.3%, 0%, 34.9%)
CIE-LABlab(29.56, 53.64, -60.52)
CIE-LCHlch(29.56, 80.87, 311.55°)
OKLaboklab(41.74% 0.0913 -0.1733)
OKLCHoklch(41.74% 0.196 297.8)
XYZxyz(11.8853, 6.0601, 36.6125)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1FA6 #68A61F
analogous
#1F24A6 #5D1FA6 #A01FA6
triadic
#5D1FA6 #A65D1F #1FA65D
tetradic
#5D1FA6 #A61F24 #68A61F #1FA6A0
square
#5D1FA6 #A61F24 #68A61F #1FA6A0
split-complementary
#5D1FA6 #A6A01F #24A61F
monochromatic
#230C3F #401572 #5D1FA6 #7A2BD7 #9A5EE1

Accessibility & contrast

On white

9.49
#5D1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1FA6
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1FA6#FFFFFF#000000##FFFFFF
##5D1FA61.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#4A4663
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d1fa6;
/* rgb */ color: rgb(93, 31, 166);
/* oklch */ color: oklch(41.7% 0.196 297.8);
Tailwind
colors: {
  custom: {
    50: '#9263c1',
    500: '#5d1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5d1fa6;
$custom-light: #9263c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1fa6",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 267.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41741,
    "c": 0.19591,
    "h": 297.8
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#5D1FA6
secondary
#95C55B
accent
#EB3C9B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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