#5D1FA7#5D1FA7

#5D1FA7 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.197 H 297.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5D1FA7
RGBrgb(93, 31, 167)
HSLhsl(267, 69%, 39%)
HSVhsv(267, 81%, 65%)
CMYKcmyk(44.3%, 81.4%, 0%, 34.5%)
CIE-LABlab(29.66, 53.88, -60.97)
CIE-LCHlch(29.66, 81.37, 311.47°)
OKLaboklab(41.83% 0.091 -0.1747)
OKLCHoklch(41.83% 0.197 297.5)
XYZxyz(11.9774, 6.0969, 37.0975)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1FA7 #69A71F
analogous
#1F25A7 #5D1FA7 #A11FA7
triadic
#5D1FA7 #A75D1F #1FA75D
tetradic
#5D1FA7 #A71F25 #69A71F #1FA7A1
square
#5D1FA7 #A71F25 #69A71F #1FA7A1
split-complementary
#5D1FA7 #A7A11F #25A71F
monochromatic
#240C40 #401573 #5D1FA7 #7A2BD8 #9A5FE1

Accessibility & contrast

On white

9.46
#5D1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1FA7
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1FA7#FFFFFF#000000##FFFFFF
##5D1FA71.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.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: #5d1fa7;
/* rgb */ color: rgb(93, 31, 167);
/* oklch */ color: oklch(41.8% 0.197 297.5);
Tailwind
colors: {
  custom: {
    50: '#9363c2',
    500: '#5d1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5d1fa7;
$custom-light: #9363c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1fa7",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 267.353,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41833,
    "c": 0.19693,
    "h": 297.5
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#5D1FA7
secondary
#96C65C
accent
#EC3C9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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