#5A117E#5A117E

#5A117E is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.168 H 310.6°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#5A117E
RGBrgb(90, 17, 126)
HSLhsl(280, 76%, 28%)
HSVhsv(280, 87%, 49%)
CMYKcmyk(28.6%, 86.5%, 0%, 50.6%)
CIE-LABlab(23.94, 48.63, -45.00)
CIE-LCHlch(23.94, 66.26, 317.22°)
OKLaboklab(36.65% 0.1094 -0.1278)
OKLCHoklch(36.65% 0.168 310.6)
XYZxyz(8.1821, 4.0811, 20.0913)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A117E #357E11
analogous
#23117E #5A117E #7E116C
triadic
#5A117E #7E5A11 #117E5A
tetradic
#5A117E #7E2311 #357E11 #116C7E
square
#5A117E #7E2311 #357E11 #116C7E
split-complementary
#5A117E #6C7E11 #117E23
monochromatic
#13041B #330A48 #5A117E #8118B4 #A427E2

Accessibility & contrast

On white

11.56
#5A117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A117E
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A117E#FFFFFF#000000##FFFFFF
##5A117E1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a117e;
/* rgb */ color: rgb(90, 17, 126);
/* oklch */ color: oklch(36.7% 0.168 310.6);
Tailwind
colors: {
  custom: {
    50: '#8d5ba4',
    500: '#5a117e',
    950: '#000000',
  },
}
SCSS
$custom: #5a117e;
$custom-light: #8d5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a117e",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 280.183,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36653,
    "c": 0.16823,
    "h": 310.6
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#5A117E
secondary
#60B437
accent
#F33574
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A117E

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

Preview Lab → · Contrast checker → · Palette generator →

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