#5A144F#5A144F

#5A144F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.123 H 335.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#5A144F
RGBrgb(90, 20, 79)
HSLhsl(309, 64%, 22%)
HSVhsv(309, 78%, 35%)
CMYKcmyk(0%, 77.8%, 12.2%, 64.7%)
CIE-LABlab(20.98, 38.35, -18.99)
CIE-LCHlch(20.98, 42.79, 333.65°)
OKLaboklab(33.51% 0.1119 -0.0519)
OKLCHoklch(33.51% 0.123 335.1)
XYZxyz(5.8780, 3.2390, 7.7112)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A144F #145A1F
analogous
#42145A #5A144F #5A142C
triadic
#5A144F #4F5A14 #144F5A
tetradic
#5A144F #5A4214 #145A1F #142C5A
square
#5A144F #5A4214 #145A1F #142C5A
split-complementary
#5A144F #2C5A14 #145A42
monochromatic
#190616 #280923 #5A144F #8C1F7B #BE2AA7

Accessibility & contrast

On white

12.75
#5A144F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A144F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A144F
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A144F#FFFFFF#000000##FFFFFF
##5A144F1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142C51
Deuteranopia (green-blind)
#2D364D
Tritanopia (blue-blind)
#5F1A30
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a144f;
/* rgb */ color: rgb(90, 20, 79);
/* oklch */ color: oklch(33.5% 0.123 335.1);
Tailwind
colors: {
  custom: {
    50: '#8b5980',
    500: '#5a144f',
    950: '#000000',
  },
}
SCSS
$custom: #5a144f;
$custom-light: #8b5980;
$custom-dark: #000000;
JSON
{
  "hex": "#5a144f",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 79
  },
  "hsl": {
    "h": 309.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33506,
    "c": 0.12333,
    "h": 335.1
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#5A144F
secondary
#389246
accent
#E75B41
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A144F

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

Preview Lab → · Contrast checker → · Palette generator →

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