#5A1660#5A1660

#5A1660 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.135 H 324.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#5A1660
RGBrgb(90, 22, 96)
HSLhsl(295, 63%, 23%)
HSVhsv(295, 77%, 38%)
CMYKcmyk(6.2%, 77.1%, 0%, 62.4%)
CIE-LABlab(22.28, 40.68, -28.30)
CIE-LCHlch(22.28, 49.56, 325.18°)
OKLaboklab(34.77% 0.1102 -0.0788)
OKLCHoklch(34.77% 0.135 324.4)
XYZxyz(6.6145, 3.5924, 11.4091)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1660 #1C6016
analogous
#351660 #5A1660 #601641
triadic
#5A1660 #605A16 #16605A
tetradic
#5A1660 #603516 #1C6016 #164160
square
#5A1660 #603516 #1C6016 #164160
split-complementary
#5A1660 #416016 #166035
monochromatic
#170619 #2B0B2E #5A1660 #892192 #B72DC4

Accessibility & contrast

On white

12.22
#5A1660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A1660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1660
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1660#FFFFFF#000000##FFFFFF
##5A16601.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#24385E
Tritanopia (blue-blind)
#5C2339
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1660;
/* rgb */ color: rgb(90, 22, 96);
/* oklch */ color: oklch(34.8% 0.135 324.4);
Tailwind
colors: {
  custom: {
    50: '#8b5b8d',
    500: '#5a1660',
    950: '#000000',
  },
}
SCSS
$custom: #5a1660;
$custom-light: #8b5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1660",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 295.135,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3477,
    "c": 0.13548,
    "h": 324.4
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#5A1660
secondary
#42973B
accent
#E6424F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1660

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

Preview Lab → · Contrast checker → · Palette generator →

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