#5A115A#5A115A

#5A115A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.136 H 328.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#5A115A
RGBrgb(90, 17, 90)
HSLhsl(300, 68%, 21%)
HSVhsv(300, 81%, 35%)
CMYKcmyk(0%, 81.1%, 0%, 64.7%)
CIE-LABlab(21.26, 41.36, -25.94)
CIE-LCHlch(21.26, 48.82, 327.90°)
OKLaboklab(33.92% 0.1154 -0.0719)
OKLCHoklch(33.92% 0.136 328.1)
XYZxyz(6.2623, 3.3132, 9.9806)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A115A #115A11
analogous
#35115A #5A115A #5A1135
triadic
#5A115A #5A5A11 #115A5A
tetradic
#5A115A #5A3511 #115A11 #11355A
square
#5A115A #5A3511 #115A11 #11355A
split-complementary
#5A115A #355A11 #115A35
monochromatic
#1A051A #270727 #5A115A #8D1B8D #C124C1

Accessibility & contrast

On white

12.63
#5A115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A115A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A115A#FFFFFF#000000##FFFFFF
##5A115A1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022D5C
Deuteranopia (green-blind)
#263658
Tritanopia (blue-blind)
#5D1D35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a115a;
/* rgb */ color: rgb(90, 17, 90);
/* oklch */ color: oklch(33.9% 0.136 328.1);
Tailwind
colors: {
  custom: {
    50: '#8c5989',
    500: '#5a115a',
    950: '#000000',
  },
}
SCSS
$custom: #5a115a;
$custom-light: #8c5989;
$custom-dark: #000000;
JSON
{
  "hex": "#5a115a",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33919,
    "c": 0.13599,
    "h": 328.1
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#5A115A
secondary
#349334
accent
#EB3D3D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A115A

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

Preview Lab → · Contrast checker → · Palette generator →

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