#5A1663#5A1663

#5A1663 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.138 H 322.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#5A1663
RGBrgb(90, 22, 99)
HSLhsl(293, 64%, 24%)
HSVhsv(293, 78%, 39%)
CMYKcmyk(9.1%, 77.8%, 0%, 61.2%)
CIE-LABlab(22.47, 41.27, -29.95)
CIE-LCHlch(22.47, 51.00, 324.03°)
OKLaboklab(34.98% 0.11 -0.0837)
OKLCHoklch(34.98% 0.138 322.8)
XYZxyz(6.7553, 3.6487, 12.1504)
Luminance0.0365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1663 #1F6316
analogous
#331663 #5A1663 #631645
triadic
#5A1663 #635A16 #16635A
tetradic
#5A1663 #633316 #1F6316 #164563
square
#5A1663 #633316 #1F6316 #164563
split-complementary
#5A1663 #456316 #166333
monochromatic
#170619 #2C0B31 #5A1663 #882195 #B52CC7

Accessibility & contrast

On white

12.14
#5A1663 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5A1663 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1663
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1663#FFFFFF#000000##FFFFFF
##5A16631.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003165
Deuteranopia (green-blind)
#223861
Tritanopia (blue-blind)
#5B243B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1663;
/* rgb */ color: rgb(90, 22, 99);
/* oklch */ color: oklch(35.0% 0.138 322.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b90',
    500: '#5a1663',
    950: '#000000',
  },
}
SCSS
$custom: #5a1663;
$custom-light: #8c5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1663",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 99
  },
  "hsl": {
    "h": 292.987,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34976,
    "c": 0.13822,
    "h": 322.8
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#5A1663
secondary
#469A3B
accent
#E74154
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1663

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

Preview Lab → · Contrast checker → · Palette generator →

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