#5A115C#5A115C

#5A115C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.138 H 326.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5A115C
RGBrgb(90, 17, 92)
HSLhsl(298, 69%, 21%)
HSVhsv(298, 82%, 36%)
CMYKcmyk(2.2%, 81.5%, 0%, 63.9%)
CIE-LABlab(21.39, 41.72, -27.07)
CIE-LCHlch(21.39, 49.73, 327.03°)
OKLaboklab(34.05% 0.1154 -0.0752)
OKLCHoklch(34.05% 0.138 326.9)
XYZxyz(6.3486, 3.3477, 10.4349)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A115C #135C11
analogous
#35115C #5A115C #5C1139
triadic
#5A115C #5C5A11 #115C5A
tetradic
#5A115C #5C3511 #135C11 #11395C
square
#5A115C #5C3511 #135C11 #11395C
split-complementary
#5A115C #395C11 #115C35
monochromatic
#19051A #270728 #5A115C #8D1B90 #BF24C3

Accessibility & contrast

On white

12.58
#5A115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A115C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A115C#FFFFFF#000000##FFFFFF
##5A115C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#24365A
Tritanopia (blue-blind)
#5D1E36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a115c;
/* rgb */ color: rgb(90, 17, 92);
/* oklch */ color: oklch(34.1% 0.138 326.9);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5a115c',
    950: '#000000',
  },
}
SCSS
$custom: #5a115c;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a115c",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 298.4,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34052,
    "c": 0.13771,
    "h": 326.9
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#5A115C
secondary
#379534
accent
#EC3C41
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A115C

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

Preview Lab → · Contrast checker → · Palette generator →

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