#5A1668#5A1668

#5A1668 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.143 H 320.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#5A1668
RGBrgb(90, 22, 104)
HSLhsl(290, 65%, 25%)
HSVhsv(290, 79%, 41%)
CMYKcmyk(13.5%, 78.8%, 0%, 59.2%)
CIE-LABlab(22.82, 42.28, -32.67)
CIE-LCHlch(22.82, 53.44, 322.30°)
OKLaboklab(35.33% 0.1096 -0.0916)
OKLCHoklch(35.33% 0.143 320.1)
XYZxyz(7.0017, 3.7473, 13.4485)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1668 #246816
analogous
#311668 #5A1668 #68164D
triadic
#5A1668 #685A16 #16685A
tetradic
#5A1668 #683116 #246816 #164D68
square
#5A1668 #683116 #246816 #164D68
split-complementary
#5A1668 #4D6816 #166831
monochromatic
#160519 #2E0B35 #5A1668 #86219B #B12BCD

Accessibility & contrast

On white

12.00
#5A1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1668
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1668#FFFFFF#000000##FFFFFF
##5A16681.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#1E3966
Tritanopia (blue-blind)
#5A273E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1668;
/* rgb */ color: rgb(90, 22, 104);
/* oklch */ color: oklch(35.3% 0.143 320.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c94',
    500: '#5a1668',
    950: '#000000',
  },
}
SCSS
$custom: #5a1668;
$custom-light: #8c5c94;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1668",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 289.756,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35331,
    "c": 0.14285,
    "h": 320.1
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#5A1668
secondary
#4C9F3B
accent
#E8405C
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1668

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

Preview Lab → · Contrast checker → · Palette generator →

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