#5A137C#5A137C

#5A137C is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.165 H 311.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#5A137C
RGBrgb(90, 19, 124)
HSLhsl(281, 73%, 28%)
HSVhsv(281, 85%, 49%)
CMYKcmyk(27.4%, 84.7%, 0%, 51.4%)
CIE-LABlab(23.98, 47.57, -43.66)
CIE-LCHlch(23.98, 64.57, 317.45°)
OKLaboklab(36.63% 0.1085 -0.1238)
OKLCHoklch(36.63% 0.165 311.2)
XYZxyz(8.0867, 4.0949, 19.4293)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A137C #357C13
analogous
#25137C #5A137C #7C136A
triadic
#5A137C #7C5A13 #137C5A
tetradic
#5A137C #7C2513 #357C13 #136A7C
square
#5A137C #7C2513 #357C13 #136A7C
split-complementary
#5A137C #6A7C13 #137C25
monochromatic
#13041B #330B47 #5A137C #811BB1 #A42BDF

Accessibility & contrast

On white

11.54
#5A137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A137C
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A137C#FFFFFF#000000##FFFFFF
##5A137C1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#552E49
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a137c;
/* rgb */ color: rgb(90, 19, 124);
/* oklch */ color: oklch(36.6% 0.165 311.2);
Tailwind
colors: {
  custom: {
    50: '#8d5ba3',
    500: '#5a137c',
    950: '#000000',
  },
}
SCSS
$custom: #5a137c;
$custom-light: #8d5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a137c",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 280.571,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36632,
    "c": 0.16466,
    "h": 311.2
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#5A137C
secondary
#60B239
accent
#F03873
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A137C

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

Preview Lab → · Contrast checker → · Palette generator →

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