#5D138E#5D138E

#5D138E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.6% C 0.182 H 306.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5D138E
RGBrgb(93, 19, 142)
HSLhsl(276, 76%, 32%)
HSVhsv(276, 87%, 56%)
CMYKcmyk(34.5%, 86.6%, 0%, 44.3%)
CIE-LABlab(26.00, 52.05, -51.66)
CIE-LCHlch(26.00, 73.34, 315.22°)
OKLaboklab(38.61% 0.1075 -0.1472)
OKLCHoklch(38.61% 0.182 306.1)
XYZxyz(9.6285, 4.7460, 25.9948)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D138E #448E13
analogous
#20138E #5D138E #8E1382
triadic
#5D138E #8E5D13 #138E5D
tetradic
#5D138E #8E2013 #448E13 #13828E
square
#5D138E #8E2013 #448E13 #13828E
split-complementary
#5D138E #828E13 #138E20
monochromatic
#160522 #3A0C58 #5D138E #801AC4 #9F37E4

Accessibility & contrast

On white

10.77
#5D138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D138E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D138E#FFFFFF#000000##FFFFFF
##5D138E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#543653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d138e;
/* rgb */ color: rgb(93, 19, 142);
/* oklch */ color: oklch(38.6% 0.182 306.1);
Tailwind
colors: {
  custom: {
    50: '#915db0',
    500: '#5d138e',
    950: '#000000',
  },
}
SCSS
$custom: #5d138e;
$custom-light: #915db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d138e",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 276.098,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38607,
    "c": 0.18232,
    "h": 306.1
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#5D138E
secondary
#71C23B
accent
#F33581
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D138E

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

Preview Lab → · Contrast checker → · Palette generator →

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