#5A147A#5A147A

#5A147A is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.162 H 312.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#5A147A
RGBrgb(90, 20, 122)
HSLhsl(281, 72%, 28%)
HSVhsv(281, 84%, 48%)
CMYKcmyk(26.2%, 83.6%, 0%, 52.2%)
CIE-LABlab(23.93, 46.81, -42.47)
CIE-LCHlch(23.93, 63.21, 317.78°)
OKLaboklab(36.55% 0.1082 -0.1204)
OKLCHoklch(36.55% 0.162 312)
XYZxyz(7.9788, 4.0793, 18.7757)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A147A #347A14
analogous
#27147A #5A147A #7A1467
triadic
#5A147A #7A5A14 #147A5A
tetradic
#5A147A #7A2714 #347A14 #14677A
square
#5A147A #7A2714 #347A14 #14677A
split-complementary
#5A147A #677A14 #147A27
monochromatic
#13041A #330B45 #5A147A #811DAF #A52CDC

Accessibility & contrast

On white

11.57
#5A147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A147A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A147A#FFFFFF#000000##FFFFFF
##5A147A1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#562E48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a147a;
/* rgb */ color: rgb(90, 20, 122);
/* oklch */ color: oklch(36.5% 0.162 312.0);
Tailwind
colors: {
  custom: {
    50: '#8d5ca1',
    500: '#5a147a',
    950: '#000000',
  },
}
SCSS
$custom: #5a147a;
$custom-light: #8d5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a147a",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 281.176,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36546,
    "c": 0.16186,
    "h": 312
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#5A147A
secondary
#5FB03A
accent
#EF3972
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A147A

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

Preview Lab → · Contrast checker → · Palette generator →

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