#5A124F#5A124F

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

Color values

HEX#5A124F
RGBrgb(90, 18, 79)
HSLhsl(309, 67%, 21%)
HSVhsv(309, 80%, 35%)
CMYKcmyk(0%, 80%, 12.2%, 64.7%)
CIE-LABlab(20.72, 39.08, -19.40)
CIE-LCHlch(20.72, 43.63, 333.60°)
OKLaboklab(33.32% 0.1141 -0.053)
OKLCHoklch(33.32% 0.126 335.1)
XYZxyz(5.8441, 3.1713, 7.7000)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A124F #125A1D
analogous
#41125A #5A124F #5A122B
triadic
#5A124F #4F5A12 #124F5A
tetradic
#5A124F #5A4112 #125A1D #122B5A
square
#5A124F #5A4112 #125A1D #122B5A
split-complementary
#5A124F #2B5A12 #125A41
monochromatic
#1A0516 #270822 #5A124F #8D1C7C #C026A9

Accessibility & contrast

On white

12.85
#5A124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A124F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A124F#FFFFFF#000000##FFFFFF
##5A124F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B51
Deuteranopia (green-blind)
#2C364D
Tritanopia (blue-blind)
#5F182F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a124f;
/* rgb */ color: rgb(90, 18, 79);
/* oklch */ color: oklch(33.3% 0.126 335.1);
Tailwind
colors: {
  custom: {
    50: '#8b5980',
    500: '#5a124f',
    950: '#000000',
  },
}
SCSS
$custom: #5a124f;
$custom-light: #8b5980;
$custom-dark: #000000;
JSON
{
  "hex": "#5a124f",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 309.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33319,
    "c": 0.12579,
    "h": 335.1
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#5A124F
secondary
#359344
accent
#EA583E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A124F

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

Preview Lab → · Contrast checker → · Palette generator →

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