#5A1678#5A1678

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

Color values

HEX#5A1678
RGBrgb(90, 22, 120)
HSLhsl(282, 69%, 28%)
HSVhsv(282, 82%, 47%)
CMYKcmyk(25%, 81.7%, 0%, 52.9%)
CIE-LABlab(24.01, 45.68, -41.07)
CIE-LCHlch(24.01, 61.42, 318.04°)
OKLaboklab(36.55% 0.107 -0.1162)
OKLCHoklch(36.55% 0.158 312.6)
XYZxyz(7.8929, 4.1038, 18.1420)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1678 #347816
analogous
#291678 #5A1678 #781665
triadic
#5A1678 #785A16 #16785A
tetradic
#5A1678 #782916 #347816 #166578
square
#5A1678 #782916 #347816 #166578
split-complementary
#5A1678 #657816 #167829
monochromatic
#13051A #330D44 #5A1678 #811FAC #A52FD9

Accessibility & contrast

On white

11.53
#5A1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1678
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1678#FFFFFF#000000##FFFFFF
##5A16781.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#053A76
Tritanopia (blue-blind)
#562E47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1678;
/* rgb */ color: rgb(90, 22, 120);
/* oklch */ color: oklch(36.6% 0.158 312.6);
Tailwind
colors: {
  custom: {
    50: '#8d5ca0',
    500: '#5a1678',
    950: '#000000',
  },
}
SCSS
$custom: #5a1678;
$custom-light: #8d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1678",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 281.633,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36552,
    "c": 0.158,
    "h": 312.6
  },
  "luminance": 0.04104
}

Semantic roles & 50–950 ramp

primary
#5A1678
secondary
#5FAD3C
accent
#EC3C72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040F
muted
#7D797E

Preview Lab

Preview with #5A1678

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

Preview Lab → · Contrast checker → · Palette generator →

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