#5A137B#5A137B

#5A137B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.164 H 311.6°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5A137B
RGBrgb(90, 19, 123)
HSLhsl(281, 73%, 28%)
HSVhsv(281, 85%, 48%)
CMYKcmyk(26.8%, 84.6%, 0%, 51.8%)
CIE-LABlab(23.90, 47.35, -43.16)
CIE-LCHlch(23.90, 64.07, 317.65°)
OKLaboklab(36.55% 0.1088 -0.1224)
OKLCHoklch(36.55% 0.164 311.6)
XYZxyz(8.0238, 4.0697, 19.0979)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A137B #347B13
analogous
#26137B #5A137B #7B1368
triadic
#5A137B #7B5A13 #137B5A
tetradic
#5A137B #7B2613 #347B13 #13687B
square
#5A137B #7B2613 #347B13 #13687B
split-complementary
#5A137B #687B13 #137B26
monochromatic
#13041B #330B46 #5A137B #811BB0 #A52ADE

Accessibility & contrast

On white

11.58
#5A137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A137B
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A137B#FFFFFF#000000##FFFFFF
##5A137B1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#562E48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a137b;
/* rgb */ color: rgb(90, 19, 123);
/* oklch */ color: oklch(36.5% 0.164 311.6);
Tailwind
colors: {
  custom: {
    50: '#8d5ba2',
    500: '#5a137b',
    950: '#000000',
  },
}
SCSS
$custom: #5a137b;
$custom-light: #8d5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a137b",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 280.962,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.16372,
    "h": 311.6
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#5A137B
secondary
#5FB139
accent
#F03872
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A137B

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

Preview Lab → · Contrast checker → · Palette generator →

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