#5A114F#5A114F

#5A114F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.127 H 335.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#5A114F
RGBrgb(90, 17, 79)
HSLhsl(309, 68%, 21%)
HSVhsv(309, 81%, 35%)
CMYKcmyk(0%, 81.1%, 12.2%, 64.7%)
CIE-LABlab(20.59, 39.43, -19.59)
CIE-LCHlch(20.59, 44.03, 333.58°)
OKLaboklab(33.23% 0.1151 -0.0536)
OKLCHoklch(33.23% 0.127 335)
XYZxyz(5.8283, 3.1396, 7.6947)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A114F #115A1C
analogous
#40115A #5A114F #5A112A
triadic
#5A114F #4F5A11 #114F5A
tetradic
#5A114F #5A4011 #115A1C #112A5A
square
#5A114F #5A4011 #115A1C #112A5A
split-complementary
#5A114F #2A5A11 #115A40
monochromatic
#1A0517 #270722 #5A114F #8D1B7C #C124A9

Accessibility & contrast

On white

12.90
#5A114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A114F
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A114F#FFFFFF#000000##FFFFFF
##5A114F1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112B51
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#5F172F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a114f;
/* rgb */ color: rgb(90, 17, 79);
/* oklch */ color: oklch(33.2% 0.127 335.0);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5a114f',
    950: '#000000',
  },
}
SCSS
$custom: #5a114f;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5a114f",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 309.041,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3323,
    "c": 0.12696,
    "h": 335
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#5A114F
secondary
#349342
accent
#EB573D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A114F

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

Preview Lab → · Contrast checker → · Palette generator →

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