#5A136F#5A136F

#5A136F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.153 H 316.9°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#5A136F
RGBrgb(90, 19, 111)
HSLhsl(286, 71%, 25%)
HSVhsv(286, 83%, 44%)
CMYKcmyk(18.9%, 82.9%, 0%, 56.5%)
CIE-LABlab(22.96, 44.80, -37.00)
CIE-LCHlch(22.96, 58.10, 320.45°)
OKLaboklab(35.59% 0.1114 -0.1043)
OKLCHoklch(35.59% 0.153 316.9)
XYZxyz(7.3181, 3.7874, 15.3814)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A136F #286F13
analogous
#2C136F #5A136F #6F1356
triadic
#5A136F #6F5A13 #136F5A
tetradic
#5A136F #6F2C13 #286F13 #13566F
square
#5A136F #6F2C13 #286F13 #13566F
split-complementary
#5A136F #566F13 #136F2C
monochromatic
#15041A #300A3B #5A136F #841CA3 #AF25D8

Accessibility & contrast

On white

11.95
#5A136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5A136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A136F
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A136F#FFFFFF#000000##FFFFFF
##5A136F1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#14396D
Tritanopia (blue-blind)
#592841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a136f;
/* rgb */ color: rgb(90, 19, 111);
/* oklch */ color: oklch(35.6% 0.153 316.9);
Tailwind
colors: {
  custom: {
    50: '#8c5b99',
    500: '#5a136f',
    950: '#000000',
  },
}
SCSS
$custom: #5a136f;
$custom-light: #8c5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5a136f",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 286.304,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3559,
    "c": 0.15258,
    "h": 316.9
  },
  "luminance": 0.03787
}

Semantic roles & 50–950 ramp

primary
#5A136F
secondary
#51A638
accent
#EE3A63
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A136F

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

Preview Lab → · Contrast checker → · Palette generator →

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