#5D139E#5D139E

#5D139E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.197 H 301.1°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5D139E
RGBrgb(93, 19, 158)
HSLhsl(272, 79%, 35%)
HSVhsv(272, 88%, 62%)
CMYKcmyk(41.1%, 88%, 0%, 38%)
CIE-LABlab(27.47, 55.69, -59.10)
CIE-LCHlch(27.47, 81.21, 313.30°)
OKLaboklab(40.07% 0.1018 -0.1691)
OKLCHoklch(40.07% 0.197 301.1)
XYZxyz(10.9171, 5.2614, 32.7815)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D139E #549E13
analogous
#17139E #5D139E #9E139A
triadic
#5D139E #9E5D13 #139E5D
tetradic
#5D139E #9E1713 #549E13 #139A9E
square
#5D139E #9E1713 #549E13 #139A9E
split-complementary
#5D139E #9A9E13 #139E17
monochromatic
#1D0631 #3D0C67 #5D139E #7D1AD5 #9B43E8

Accessibility & contrast

On white

10.23
#5D139E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D139E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D139E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D139E#FFFFFF#000000##FFFFFF
##5D139E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4E3E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d139e;
/* rgb */ color: rgb(93, 19, 158);
/* oklch */ color: oklch(40.1% 0.197 301.1);
Tailwind
colors: {
  custom: {
    50: '#925ebc',
    500: '#5d139e',
    950: '#000000',
  },
}
SCSS
$custom: #5d139e;
$custom-light: #925ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d139e",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 158
  },
  "hsl": {
    "h": 271.942,
    "s": 78.531,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40068,
    "c": 0.19737,
    "h": 301.1
  },
  "luminance": 0.05262
}

Semantic roles & 50–950 ramp

primary
#5D139E
secondary
#82C944
accent
#F5338E
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D139E

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

Preview Lab → · Contrast checker → · Palette generator →

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