#5A136A#5A136A

#5A136A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.148 H 319.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#5A136A
RGBrgb(90, 19, 106)
HSLhsl(289, 70%, 25%)
HSVhsv(289, 82%, 42%)
CMYKcmyk(15.1%, 82.1%, 0%, 58.4%)
CIE-LABlab(22.59, 43.77, -34.35)
CIE-LCHlch(22.59, 55.64, 321.87°)
OKLaboklab(35.21% 0.1122 -0.0965)
OKLCHoklch(35.21% 0.148 319.3)
XYZxyz(7.0505, 3.6804, 13.9719)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A136A #236A13
analogous
#2F136A #5A136A #6A134E
triadic
#5A136A #6A5A13 #136A5A
tetradic
#5A136A #6A2F13 #236A13 #134E6A
square
#5A136A #6A2F13 #236A13 #134E6A
split-complementary
#5A136A #4E6A13 #136A2F
monochromatic
#16051A #2E0A36 #5A136A #861C9E #B226D2

Accessibility & contrast

On white

12.10
#5A136A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A136A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A136A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A136A#FFFFFF#000000##FFFFFF
##5A136A1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#1A3868
Tritanopia (blue-blind)
#5A263E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a136a;
/* rgb */ color: rgb(90, 19, 106);
/* oklch */ color: oklch(35.2% 0.148 319.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a95',
    500: '#5a136a',
    950: '#000000',
  },
}
SCSS
$custom: #5a136a;
$custom-light: #8c5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a136a",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 106
  },
  "hsl": {
    "h": 288.966,
    "s": 69.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.148,
    "h": 319.3
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#5A136A
secondary
#4BA138
accent
#EC3B5C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A136A

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

Preview Lab → · Contrast checker → · Palette generator →

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