#5A137D#5A137D

#5A137D is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.166 H 310.8°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#5A137D
RGBrgb(90, 19, 125)
HSLhsl(280, 74%, 28%)
HSVhsv(280, 85%, 49%)
CMYKcmyk(28%, 84.8%, 0%, 51%)
CIE-LABlab(24.07, 47.79, -44.16)
CIE-LCHlch(24.07, 65.07, 317.26°)
OKLaboklab(36.72% 0.1083 -0.1253)
OKLCHoklch(36.72% 0.166 310.8)
XYZxyz(8.1503, 4.1203, 19.7640)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A137D #367D13
analogous
#25137D #5A137D #7D136B
triadic
#5A137D #7D5A13 #137D5A
tetradic
#5A137D #7D2513 #367D13 #136B7D
square
#5A137D #7D2513 #367D13 #136B7D
split-complementary
#5A137D #6B7D13 #137D25
monochromatic
#13041B #340B48 #5A137D #801BB2 #A42CDF

Accessibility & contrast

On white

11.51
#5A137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A137D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A137D#FFFFFF#000000##FFFFFF
##5A137D1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#552F49
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a137d;
/* rgb */ color: rgb(90, 19, 125);
/* oklch */ color: oklch(36.7% 0.166 310.8);
Tailwind
colors: {
  custom: {
    50: '#8d5ca3',
    500: '#5a137d',
    950: '#000000',
  },
}
SCSS
$custom: #5a137d;
$custom-light: #8d5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a137d",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 280.189,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36716,
    "c": 0.1656,
    "h": 310.8
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#5A137D
secondary
#61B339
accent
#F03875
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A137D

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

Preview Lab → · Contrast checker → · Palette generator →

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