#5D13A0#5D13A0

#5D13A0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.3% C 0.199 H 300.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5D13A0
RGBrgb(93, 19, 160)
HSLhsl(271, 79%, 35%)
HSVhsv(271, 88%, 63%)
CMYKcmyk(41.9%, 88.1%, 0%, 37.3%)
CIE-LABlab(27.66, 56.15, -60.01)
CIE-LCHlch(27.66, 82.18, 313.10°)
OKLaboklab(40.26% 0.1011 -0.1717)
OKLCHoklch(40.26% 0.199 300.5)
XYZxyz(11.0906, 5.3309, 33.6955)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D13A0 #56A013
analogous
#1613A0 #5D13A0 #A0139D
triadic
#5D13A0 #A05D13 #13A05D
tetradic
#5D13A0 #A01613 #56A013 #139DA0
square
#5D13A0 #A01613 #56A013 #139DA0
split-complementary
#5D13A0 #9DA013 #13A016
monochromatic
#1D0633 #3D0D69 #5D13A0 #7D19D7 #9B45E9

Accessibility & contrast

On white

10.16
#5D13A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D13A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D13A0
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D13A0#FFFFFF#000000##FFFFFF
##5D13A01.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#4D3F5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d13a0;
/* rgb */ color: rgb(93, 19, 160);
/* oklch */ color: oklch(40.3% 0.199 300.5);
Tailwind
colors: {
  custom: {
    50: '#925ebd',
    500: '#5d13a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d13a0;
$custom-light: #925ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d13a0",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 160
  },
  "hsl": {
    "h": 271.489,
    "s": 78.771,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40256,
    "c": 0.19925,
    "h": 300.5
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#5D13A0
secondary
#84C945
accent
#F5338F
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D13A0

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

Preview Lab → · Contrast checker → · Palette generator →

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