#5D18A1#5D18A1

#5D18A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.197 H 299.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5D18A1
RGBrgb(93, 24, 161)
HSLhsl(270, 74%, 36%)
HSVhsv(270, 85%, 63%)
CMYKcmyk(42.2%, 85.1%, 0%, 36.9%)
CIE-LABlab(28.26, 54.89, -59.63)
CIE-LCHlch(28.26, 81.05, 312.63°)
OKLaboklab(40.7% 0.0978 -0.1707)
OKLCHoklch(40.7% 0.197 299.8)
XYZxyz(11.2722, 5.5535, 34.1894)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D18A1 #5CA118
analogous
#1918A1 #5D18A1 #A118A1
triadic
#5D18A1 #A15D18 #18A15D
tetradic
#5D18A1 #A11918 #5CA118 #18A1A1
square
#5D18A1 #A11918 #5CA118 #18A1A1
split-complementary
#5D18A1 #A1A118 #18A119
monochromatic
#1F0836 #3E106C #5D18A1 #7C20D6 #9A4FE5

Accessibility & contrast

On white

9.95
#5D18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D18A1
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D18A1#FFFFFF#000000##FFFFFF
##5D18A11.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#4C415F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d18a1;
/* rgb */ color: rgb(93, 24, 161);
/* oklch */ color: oklch(40.7% 0.197 299.8);
Tailwind
colors: {
  custom: {
    50: '#9260be',
    500: '#5d18a1',
    950: '#000000',
  },
}
SCSS
$custom: #5d18a1;
$custom-light: #9260be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d18a1",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 270.219,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40696,
    "c": 0.19669,
    "h": 299.8
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#5D18A1
secondary
#8AC74E
accent
#F13793
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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