#5A1679#5A1679

#5A1679 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.159 H 312.2°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5A1679
RGBrgb(90, 22, 121)
HSLhsl(281, 69%, 28%)
HSVhsv(281, 82%, 47%)
CMYKcmyk(25.6%, 81.8%, 0%, 52.5%)
CIE-LABlab(24.09, 45.90, -41.58)
CIE-LCHlch(24.09, 61.93, 317.83°)
OKLaboklab(36.63% 0.1068 -0.1177)
OKLCHoklch(36.63% 0.159 312.2)
XYZxyz(7.9539, 4.1282, 18.4633)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1679 #357916
analogous
#281679 #5A1679 #791666
triadic
#5A1679 #795A16 #16795A
tetradic
#5A1679 #792816 #357916 #166679
square
#5A1679 #792816 #357916 #166679
split-complementary
#5A1679 #667916 #167928
monochromatic
#13051A #330D45 #5A1679 #811FAD #A430D9

Accessibility & contrast

On white

11.50
#5A1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A1679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1679
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1679#FFFFFF#000000##FFFFFF
##5A16791.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#033B77
Tritanopia (blue-blind)
#562E48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1679;
/* rgb */ color: rgb(90, 22, 121);
/* oklch */ color: oklch(36.6% 0.159 312.2);
Tailwind
colors: {
  custom: {
    50: '#8d5ca0',
    500: '#5a1679',
    950: '#000000',
  },
}
SCSS
$custom: #5a1679;
$custom-light: #8d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1679",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 281.212,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36632,
    "c": 0.15896,
    "h": 312.2
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#5A1679
secondary
#60AE3D
accent
#EC3C73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040F
muted
#7D797E

Preview Lab

Preview with #5A1679

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

Preview Lab → · Contrast checker → · Palette generator →

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