#5D138D#5D138D

#5D138D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.181 H 306.5°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5D138D
RGBrgb(93, 19, 141)
HSLhsl(276, 76%, 31%)
HSVhsv(276, 87%, 55%)
CMYKcmyk(34%, 86.5%, 0%, 44.7%)
CIE-LABlab(25.91, 51.83, -51.18)
CIE-LCHlch(25.91, 72.84, 315.36°)
OKLaboklab(38.52% 0.1079 -0.1458)
OKLCHoklch(38.52% 0.181 306.5)
XYZxyz(9.5537, 4.7161, 25.6011)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D138D #438D13
analogous
#20138D #5D138D #8D1380
triadic
#5D138D #8D5D13 #138D5D
tetradic
#5D138D #8D2013 #438D13 #13808D
square
#5D138D #8D2013 #438D13 #13808D
split-complementary
#5D138D #808D13 #138D20
monochromatic
#160421 #390C57 #5D138D #811AC3 #A036E4

Accessibility & contrast

On white

10.81
#5D138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D138D
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D138D#FFFFFF#000000##FFFFFF
##5D138D1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#543653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d138d;
/* rgb */ color: rgb(93, 19, 141);
/* oklch */ color: oklch(38.5% 0.181 306.5);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5d138d',
    950: '#000000',
  },
}
SCSS
$custom: #5d138d;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d138d",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 276.393,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38519,
    "c": 0.18139,
    "h": 306.5
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

primary
#5D138D
secondary
#70C13B
accent
#F33580
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D138D

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

Preview Lab → · Contrast checker → · Palette generator →

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