#5A146A#5A146A

#5A146A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.147 H 319.2°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#5A146A
RGBrgb(90, 20, 106)
HSLhsl(289, 68%, 25%)
HSVhsv(289, 81%, 42%)
CMYKcmyk(15.1%, 81.1%, 0%, 58.4%)
CIE-LABlab(22.71, 43.42, -34.16)
CIE-LCHlch(22.71, 55.25, 321.81°)
OKLaboklab(35.3% 0.1113 -0.0959)
OKLCHoklch(35.3% 0.147 319.2)
XYZxyz(7.0678, 3.7149, 13.9776)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A146A #246A14
analogous
#2F146A #5A146A #6A144F
triadic
#5A146A #6A5A14 #146A5A
tetradic
#5A146A #6A2F14 #246A14 #144F6A
square
#5A146A #6A2F14 #246A14 #144F6A
split-complementary
#5A146A #4F6A14 #146A2F
monochromatic
#16051A #2E0A37 #5A146A #861E9D #B127D1

Accessibility & contrast

On white

12.05
#5A146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A146A
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A146A#FFFFFF#000000##FFFFFF
##5A146A1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#1B3868
Tritanopia (blue-blind)
#5A263F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a146a;
/* rgb */ color: rgb(90, 20, 106);
/* oklch */ color: oklch(35.3% 0.147 319.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b95',
    500: '#5a146a',
    950: '#000000',
  },
}
SCSS
$custom: #5a146a;
$custom-light: #8c5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a146a",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 288.837,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35296,
    "c": 0.14694,
    "h": 319.2
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#5A146A
secondary
#4CA139
accent
#EB3D5D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A146A

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

Preview Lab → · Contrast checker → · Palette generator →

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