#5A1358#5A1358

#5A1358 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.132 H 329.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5A1358
RGBrgb(90, 19, 88)
HSLhsl(302, 65%, 21%)
HSVhsv(302, 79%, 35%)
CMYKcmyk(0%, 78.9%, 2.2%, 64.7%)
CIE-LABlab(21.37, 40.30, -24.42)
CIE-LCHlch(21.37, 47.12, 328.78°)
OKLaboklab(33.96% 0.1135 -0.0675)
OKLCHoklch(33.96% 0.132 329.2)
XYZxyz(6.2107, 3.3445, 9.5491)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1358 #135A15
analogous
#39135A #5A1358 #5A1335
triadic
#5A1358 #585A13 #13585A
tetradic
#5A1358 #5A3913 #135A15 #13355A
square
#5A1358 #5A3913 #135A15 #13355A
split-complementary
#5A1358 #355A13 #135A39
monochromatic
#190519 #270827 #5A1358 #8D1E89 #BF28BB

Accessibility & contrast

On white

12.58
#5A1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1358
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1358#FFFFFF#000000##FFFFFF
##5A13581.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082D5A
Deuteranopia (green-blind)
#283756
Tritanopia (blue-blind)
#5D1D34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1358;
/* rgb */ color: rgb(90, 19, 88);
/* oklch */ color: oklch(34.0% 0.132 329.2);
Tailwind
colors: {
  custom: {
    50: '#8b5987',
    500: '#5a1358',
    950: '#000000',
  },
}
SCSS
$custom: #5a1358;
$custom-light: #8b5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1358",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 301.69,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33962,
    "c": 0.13203,
    "h": 329.2
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#5A1358
secondary
#379239
accent
#E84440
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1358

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

Preview Lab → · Contrast checker → · Palette generator →

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