#5A136D#5A136D

#5A136D is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.4% C 0.151 H 317.8°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#5A136D
RGBrgb(90, 19, 109)
HSLhsl(287, 70%, 25%)
HSVhsv(287, 83%, 43%)
CMYKcmyk(17.4%, 82.6%, 0%, 57.3%)
CIE-LABlab(22.81, 44.38, -35.94)
CIE-LCHlch(22.81, 57.11, 321.00°)
OKLaboklab(35.44% 0.1117 -0.1012)
OKLCHoklch(35.44% 0.151 317.8)
XYZxyz(7.2092, 3.7439, 14.8079)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A136D #266D13
analogous
#2D136D #5A136D #6D1353
triadic
#5A136D #6D5A13 #136D5A
tetradic
#5A136D #6D2D13 #266D13 #13536D
square
#5A136D #6D2D13 #266D13 #13536D
split-complementary
#5A136D #536D13 #136D2D
monochromatic
#16051A #2F0A39 #5A136D #851CA1 #B025D5

Accessibility & contrast

On white

12.01
#5A136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A136D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A136D
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A136D#FFFFFF#000000##FFFFFF
##5A136D1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#17396B
Tritanopia (blue-blind)
#592740
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a136d;
/* rgb */ color: rgb(90, 19, 109);
/* oklch */ color: oklch(35.4% 0.151 317.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b97',
    500: '#5a136d',
    950: '#000000',
  },
}
SCSS
$custom: #5a136d;
$custom-light: #8c5b97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a136d",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 287.333,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35437,
    "c": 0.15074,
    "h": 317.8
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#5A136D
secondary
#4FA438
accent
#ED3B60
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A136D

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

Preview Lab → · Contrast checker → · Palette generator →

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