#5A114E#5A114E

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

Color values

HEX#5A114E
RGBrgb(90, 17, 78)
HSLhsl(310, 68%, 21%)
HSVhsv(310, 81%, 35%)
CMYKcmyk(0%, 81.1%, 13.3%, 64.7%)
CIE-LABlab(20.54, 39.27, -19.00)
CIE-LCHlch(20.54, 43.62, 334.18°)
OKLaboklab(33.17% 0.115 -0.0519)
OKLCHoklch(33.17% 0.126 335.7)
XYZxyz(5.7921, 3.1251, 7.5044)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A114E #115A1D
analogous
#41115A #5A114E #5A1129
triadic
#5A114E #4E5A11 #114E5A
tetradic
#5A114E #5A4111 #115A1D #11295A
square
#5A114E #5A4111 #115A1D #11295A
split-complementary
#5A114E #295A11 #115A41
monochromatic
#1A0516 #270721 #5A114E #8D1B7B #C124A7

Accessibility & contrast

On white

12.92
#5A114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A114E
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A114E#FFFFFF#000000##FFFFFF
##5A114E1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B50
Deuteranopia (green-blind)
#2C354C
Tritanopia (blue-blind)
#5F172E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a114e;
/* rgb */ color: rgb(90, 17, 78);
/* oklch */ color: oklch(33.2% 0.126 335.7);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5a114e',
    950: '#000000',
  },
}
SCSS
$custom: #5a114e;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5a114e",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 309.863,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.12618,
    "h": 335.7
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#5A114E
secondary
#349344
accent
#EB593D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A114E

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

Preview Lab → · Contrast checker → · Palette generator →

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