#5A147C#5A147C

#5A147C is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.164 H 311.1°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5A147C
RGBrgb(90, 20, 124)
HSLhsl(280, 72%, 28%)
HSVhsv(280, 84%, 49%)
CMYKcmyk(27.4%, 83.9%, 0%, 51.4%)
CIE-LABlab(24.09, 47.25, -43.48)
CIE-LCHlch(24.09, 64.21, 317.38°)
OKLaboklab(36.71% 0.1077 -0.1233)
OKLCHoklch(36.71% 0.164 311.1)
XYZxyz(8.1040, 4.1294, 19.4350)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A147C #367C14
analogous
#26147C #5A147C #7C146A
triadic
#5A147C #7C5A14 #147C5A
tetradic
#5A147C #7C2614 #367C14 #146A7C
square
#5A147C #7C2614 #367C14 #146A7C
split-complementary
#5A147C #6A7C14 #147C26
monochromatic
#13041A #340B47 #5A147C #801DB1 #A42DDD

Accessibility & contrast

On white

11.50
#5A147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A147C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A147C#FFFFFF#000000##FFFFFF
##5A147C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#552F49
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a147c;
/* rgb */ color: rgb(90, 20, 124);
/* oklch */ color: oklch(36.7% 0.164 311.1);
Tailwind
colors: {
  custom: {
    50: '#8d5ca3',
    500: '#5a147c',
    950: '#000000',
  },
}
SCSS
$custom: #5a147c;
$custom-light: #8d5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a147c",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 280.385,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36711,
    "c": 0.16375,
    "h": 311.1
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#5A147C
secondary
#61B23A
accent
#EF3974
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A147C

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

Preview Lab → · Contrast checker → · Palette generator →

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