#5A135C#5A135C

#5A135C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.135 H 326.8°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#5A135C
RGBrgb(90, 19, 92)
HSLhsl(298, 66%, 22%)
HSVhsv(298, 79%, 36%)
CMYKcmyk(2.2%, 79.3%, 0%, 63.9%)
CIE-LABlab(21.63, 41.03, -26.68)
CIE-LCHlch(21.63, 48.95, 326.96°)
OKLaboklab(34.22% 0.1134 -0.0741)
OKLCHoklch(34.22% 0.135 326.8)
XYZxyz(6.3810, 3.4126, 10.4457)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A135C #155C13
analogous
#36135C #5A135C #5C133A
triadic
#5A135C #5C5A13 #135C5A
tetradic
#5A135C #5C3613 #155C13 #133A5C
square
#5A135C #5C3613 #155C13 #133A5C
split-complementary
#5A135C #3A5C13 #135C36
monochromatic
#190519 #280929 #5A135C #8C1D8F #BD28C1

Accessibility & contrast

On white

12.48
#5A135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A135C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A135C#FFFFFF#000000##FFFFFF
##5A135C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5E
Deuteranopia (green-blind)
#25375A
Tritanopia (blue-blind)
#5D1F36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a135c;
/* rgb */ color: rgb(90, 19, 92);
/* oklch */ color: oklch(34.2% 0.135 326.8);
Tailwind
colors: {
  custom: {
    50: '#8c5a8a',
    500: '#5a135c',
    950: '#000000',
  },
}
SCSS
$custom: #5a135c;
$custom-light: #8c5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a135c",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 298.356,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34223,
    "c": 0.13548,
    "h": 326.8
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#5A135C
secondary
#399437
accent
#E93F44
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A135C

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

Preview Lab → · Contrast checker → · Palette generator →

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