#5A115E#5A115E

#5A115E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.139 H 325.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#5A115E
RGBrgb(90, 17, 94)
HSLhsl(297, 69%, 22%)
HSVhsv(297, 82%, 37%)
CMYKcmyk(4.3%, 81.9%, 0%, 63.1%)
CIE-LABlab(21.52, 42.10, -28.18)
CIE-LCHlch(21.52, 50.66, 326.20°)
OKLaboklab(34.19% 0.1153 -0.0785)
OKLCHoklch(34.19% 0.139 325.8)
XYZxyz(6.4371, 3.3831, 10.9015)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A115E #155E11
analogous
#34115E #5A115E #5E113C
triadic
#5A115E #5E5A11 #115E5A
tetradic
#5A115E #5E3411 #155E11 #113C5E
square
#5A115E #5E3411 #155E11 #113C5E
split-complementary
#5A115E #3C5E11 #115E34
monochromatic
#19051A #28082A #5A115E #8C1A92 #BD24C6

Accessibility & contrast

On white

12.53
#5A115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A115E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A115E#FFFFFF#000000##FFFFFF
##5A115E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#23375C
Tritanopia (blue-blind)
#5C1F37
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a115e;
/* rgb */ color: rgb(90, 17, 94);
/* oklch */ color: oklch(34.2% 0.139 325.8);
Tailwind
colors: {
  custom: {
    50: '#8c598c',
    500: '#5a115e',
    950: '#000000',
  },
}
SCSS
$custom: #5a115e;
$custom-light: #8c598c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a115e",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 296.883,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34188,
    "c": 0.13942,
    "h": 325.8
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#5A115E
secondary
#399734
accent
#EC3C45
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A115E

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

Preview Lab → · Contrast checker → · Palette generator →

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