#5A147D#5A147D

#5A147D is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.165 H 310.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5A147D
RGBrgb(90, 20, 125)
HSLhsl(280, 72%, 28%)
HSVhsv(280, 84%, 49%)
CMYKcmyk(28%, 84%, 0%, 51%)
CIE-LABlab(24.18, 47.47, -43.98)
CIE-LCHlch(24.18, 64.71, 317.18°)
OKLaboklab(36.79% 0.1075 -0.1248)
OKLCHoklch(36.79% 0.165 310.7)
XYZxyz(8.1676, 4.1548, 19.7698)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A147D #377D14
analogous
#25147D #5A147D #7D146B
triadic
#5A147D #7D5A14 #147D5A
tetradic
#5A147D #7D2514 #377D14 #146B7D
square
#5A147D #7D2514 #377D14 #146B7D
split-complementary
#5A147D #6B7D14 #147D25
monochromatic
#13041A #340C48 #5A147D #801CB2 #A32EDE

Accessibility & contrast

On white

11.47
#5A147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A147D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A147D#FFFFFF#000000##FFFFFF
##5A147D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#552F4A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a147d;
/* rgb */ color: rgb(90, 20, 125);
/* oklch */ color: oklch(36.8% 0.165 310.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ca3',
    500: '#5a147d',
    950: '#000000',
  },
}
SCSS
$custom: #5a147d;
$custom-light: #8d5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a147d",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 280,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36794,
    "c": 0.1647,
    "h": 310.7
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#5A147D
secondary
#62B23A
accent
#EF3975
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A147D

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

Preview Lab → · Contrast checker → · Palette generator →

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