#5A145A#5A145A

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

Color values

HEX#5A145A
RGBrgb(90, 20, 90)
HSLhsl(300, 64%, 22%)
HSVhsv(300, 78%, 35%)
CMYKcmyk(0%, 77.8%, 0%, 64.7%)
CIE-LABlab(21.63, 40.30, -25.35)
CIE-LCHlch(21.63, 47.61, 327.82°)
OKLaboklab(34.18% 0.1124 -0.0702)
OKLCHoklch(34.18% 0.133 328)
XYZxyz(6.3120, 3.4126, 9.9971)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A145A #145A14
analogous
#37145A #5A145A #5A1437
triadic
#5A145A #5A5A14 #145A5A
tetradic
#5A145A #5A3714 #145A14 #14375A
square
#5A145A #5A3714 #145A14 #14375A
split-complementary
#5A145A #375A14 #145A37
monochromatic
#190619 #280928 #5A145A #8C1F8C #BE2ABE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A145A#FFFFFF#000000##FFFFFF
##5A145A1.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)
#072E5C
Deuteranopia (green-blind)
#273758
Tritanopia (blue-blind)
#5D1F36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a145a;
/* rgb */ color: rgb(90, 20, 90);
/* oklch */ color: oklch(34.2% 0.133 328.0);
Tailwind
colors: {
  custom: {
    50: '#8b5a89',
    500: '#5a145a',
    950: '#000000',
  },
}
SCSS
$custom: #5a145a;
$custom-light: #8b5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5a145a",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34182,
    "c": 0.13257,
    "h": 328
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#5A145A
secondary
#389238
accent
#E74141
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A145A

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

Preview Lab → · Contrast checker → · Palette generator →

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