#5A1664#5A1664

#5A1664 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.139 H 322.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#5A1664
RGBrgb(90, 22, 100)
HSLhsl(292, 64%, 24%)
HSVhsv(292, 78%, 39%)
CMYKcmyk(10%, 78%, 0%, 60.8%)
CIE-LABlab(22.54, 41.47, -30.50)
CIE-LCHlch(22.54, 51.48, 323.67°)
OKLaboklab(35.05% 0.11 -0.0853)
OKLCHoklch(35.05% 0.139 322.2)
XYZxyz(6.8034, 3.6680, 12.4038)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1664 #206416
analogous
#331664 #5A1664 #641647
triadic
#5A1664 #645A16 #16645A
tetradic
#5A1664 #643316 #206416 #164764
square
#5A1664 #643316 #206416 #164764
split-complementary
#5A1664 #476416 #166433
monochromatic
#170619 #2D0B32 #5A1664 #872196 #B42CC8

Accessibility & contrast

On white

12.11
#5A1664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1664
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1664#FFFFFF#000000##FFFFFF
##5A16641.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#213862
Tritanopia (blue-blind)
#5B253C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1664;
/* rgb */ color: rgb(90, 22, 100);
/* oklch */ color: oklch(35.0% 0.139 322.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b90',
    500: '#5a1664',
    950: '#000000',
  },
}
SCSS
$custom: #5a1664;
$custom-light: #8c5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1664",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 292.308,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35046,
    "c": 0.13914,
    "h": 322.2
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#5A1664
secondary
#479B3B
accent
#E74156
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1664

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

Preview Lab → · Contrast checker → · Palette generator →

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