#5D1EA7#5D1EA7

#5D1EA7 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.198 H 297.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5D1EA7
RGBrgb(93, 30, 167)
HSLhsl(268, 70%, 39%)
HSVhsv(268, 82%, 65%)
CMYKcmyk(44.3%, 82%, 0%, 34.5%)
CIE-LABlab(29.53, 54.26, -61.18)
CIE-LCHlch(29.53, 81.78, 311.57°)
OKLaboklab(41.74% 0.0917 -0.1753)
OKLCHoklch(41.74% 0.198 297.6)
XYZxyz(11.9517, 6.0455, 37.0889)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1EA7 #68A71E
analogous
#1E24A7 #5D1EA7 #A11EA7
triadic
#5D1EA7 #A75D1E #1EA75D
tetradic
#5D1EA7 #A71E24 #68A71E #1EA7A1
square
#5D1EA7 #A71E24 #68A71E #1EA7A1
split-complementary
#5D1EA7 #A7A11E #24A71E
monochromatic
#230B3F #401573 #5D1EA7 #7A2AD9 #9A5DE2

Accessibility & contrast

On white

9.51
#5D1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1EA7
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1EA7#FFFFFF#000000##FFFFFF
##5D1EA71.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#494664
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d1ea7;
/* rgb */ color: rgb(93, 30, 167);
/* oklch */ color: oklch(41.7% 0.198 297.6);
Tailwind
colors: {
  custom: {
    50: '#9363c2',
    500: '#5d1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5d1ea7;
$custom-light: #9363c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1ea7",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 267.591,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41744,
    "c": 0.1978,
    "h": 297.6
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#5D1EA7
secondary
#95C65B
accent
#EC3B9B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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