#5D1EA9#5D1EA9

#5D1EA9 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.200 H 297.1°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5D1EA9
RGBrgb(93, 30, 169)
HSLhsl(267, 70%, 39%)
HSVhsv(267, 82%, 66%)
CMYKcmyk(45%, 82.2%, 0%, 33.7%)
CIE-LABlab(29.71, 54.75, -62.08)
CIE-LCHlch(29.71, 82.78, 311.41°)
OKLaboklab(41.93% 0.091 -0.1779)
OKLCHoklch(41.93% 0.2 297.1)
XYZxyz(12.1380, 6.1200, 38.0702)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1EA9 #6AA91E
analogous
#1E25A9 #5D1EA9 #A31EA9
triadic
#5D1EA9 #A95D1E #1EA95D
tetradic
#5D1EA9 #A91E25 #6AA91E #1EA9A3
square
#5D1EA9 #A91E25 #6AA91E #1EA9A3
split-complementary
#5D1EA9 #A9A31E #25A91E
monochromatic
#240C41 #401575 #5D1EA9 #7A2BD9 #9B5FE3

Accessibility & contrast

On white

9.44
#5D1EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1EA9
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1EA9#FFFFFF#000000##FFFFFF
##5D1EA91.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#484665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d1ea9;
/* rgb */ color: rgb(93, 30, 169);
/* oklch */ color: oklch(41.9% 0.200 297.1);
Tailwind
colors: {
  custom: {
    50: '#9363c4',
    500: '#5d1ea9',
    950: '#000000',
  },
}
SCSS
$custom: #5d1ea9;
$custom-light: #9363c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1ea9",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 267.194,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41929,
    "c": 0.19984,
    "h": 297.1
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#5D1EA9
secondary
#96C75C
accent
#ED3B9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D1EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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