#5A135B#5A135B

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

Color values

HEX#5A135B
RGBrgb(90, 19, 91)
HSLhsl(299, 65%, 22%)
HSVhsv(299, 79%, 36%)
CMYKcmyk(1.1%, 79.1%, 0%, 64.3%)
CIE-LABlab(21.56, 40.85, -26.12)
CIE-LCHlch(21.56, 48.49, 327.40°)
OKLaboklab(34.16% 0.1135 -0.0725)
OKLCHoklch(34.16% 0.135 327.4)
XYZxyz(6.3376, 3.3952, 10.2170)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A135B #145B13
analogous
#36135B #5A135B #5B1338
triadic
#5A135B #5B5A13 #135B5A
tetradic
#5A135B #5B3613 #145B13 #13385B
square
#5A135B #5B3613 #145B13 #13385B
split-complementary
#5A135B #385B13 #135B36
monochromatic
#190519 #280828 #5A135B #8C1E8E #BE28C0

Accessibility & contrast

On white

12.51
#5A135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A135B
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A135B#FFFFFF#000000##FFFFFF
##5A135B1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032E5D
Deuteranopia (green-blind)
#263759
Tritanopia (blue-blind)
#5D1F36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a135b;
/* rgb */ color: rgb(90, 19, 91);
/* oklch */ color: oklch(34.2% 0.135 327.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a8a',
    500: '#5a135b',
    950: '#000000',
  },
}
SCSS
$custom: #5a135b;
$custom-light: #8c5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a135b",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 299.167,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.13462,
    "h": 327.4
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#5A135B
secondary
#389337
accent
#E83F42
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A135B

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

Preview Lab → · Contrast checker → · Palette generator →

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