#5A136E#5A136E

#5A136E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.152 H 317.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#5A136E
RGBrgb(90, 19, 110)
HSLhsl(287, 71%, 25%)
HSVhsv(287, 83%, 43%)
CMYKcmyk(18.2%, 82.7%, 0%, 56.9%)
CIE-LABlab(22.88, 44.59, -36.47)
CIE-LCHlch(22.88, 57.61, 320.72°)
OKLaboklab(35.51% 0.1116 -0.1027)
OKLCHoklch(35.51% 0.152 317.4)
XYZxyz(7.2634, 3.7655, 15.0930)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A136E #276E13
analogous
#2C136E #5A136E #6E1354
triadic
#5A136E #6E5A13 #136E5A
tetradic
#5A136E #6E2C13 #276E13 #13546E
square
#5A136E #6E2C13 #276E13 #13546E
split-complementary
#5A136E #546E13 #136E2C
monochromatic
#15051A #2F0A3A #5A136E #851CA2 #AF25D6

Accessibility & contrast

On white

11.98
#5A136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A136E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A136E#FFFFFF#000000##FFFFFF
##5A136E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#15396C
Tritanopia (blue-blind)
#592841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a136e;
/* rgb */ color: rgb(90, 19, 110);
/* oklch */ color: oklch(35.5% 0.152 317.4);
Tailwind
colors: {
  custom: {
    50: '#8c5b98',
    500: '#5a136e',
    950: '#000000',
  },
}
SCSS
$custom: #5a136e;
$custom-light: #8c5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a136e",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 286.813,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35513,
    "c": 0.15166,
    "h": 317.4
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#5A136E
secondary
#50A538
accent
#ED3A62
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A136E

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

Preview Lab → · Contrast checker → · Palette generator →

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