#5D138A#5D138A

#5D138A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.179 H 307.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5D138A
RGBrgb(93, 19, 138)
HSLhsl(277, 76%, 31%)
HSVhsv(277, 86%, 54%)
CMYKcmyk(32.6%, 86.2%, 0%, 45.9%)
CIE-LABlab(25.65, 51.16, -49.74)
CIE-LCHlch(25.65, 71.36, 315.81°)
OKLaboklab(38.26% 0.1088 -0.1416)
OKLCHoklch(38.26% 0.179 307.5)
XYZxyz(9.3335, 4.6280, 24.4414)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D138A #408A13
analogous
#21138A #5D138A #8A137B
triadic
#5D138A #8A5D13 #138A5D
tetradic
#5D138A #8A2113 #408A13 #137B8A
square
#5D138A #8A2113 #408A13 #137B8A
split-complementary
#5D138A #7B8A13 #138A21
monochromatic
#14041E #390C54 #5D138A #811AC0 #A134E3

Accessibility & contrast

On white

10.91
#5D138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D138A
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D138A#FFFFFF#000000##FFFFFF
##5D138A1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#553551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d138a;
/* rgb */ color: rgb(93, 19, 138);
/* oklch */ color: oklch(38.3% 0.179 307.5);
Tailwind
colors: {
  custom: {
    50: '#905dad',
    500: '#5d138a',
    950: '#000000',
  },
}
SCSS
$custom: #5d138a;
$custom-light: #905dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d138a",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 277.311,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38256,
    "c": 0.17859,
    "h": 307.5
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#5D138A
secondary
#6CBE3A
accent
#F2357D
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D138A

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

Preview Lab → · Contrast checker → · Palette generator →

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