#5A1977#5A1977

#5A1977 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.154 H 312.8°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#5A1977
RGBrgb(90, 25, 119)
HSLhsl(281, 65%, 28%)
HSVhsv(281, 79%, 47%)
CMYKcmyk(24.4%, 79%, 0%, 53.3%)
CIE-LABlab(24.33, 44.33, -39.92)
CIE-LCHlch(24.33, 59.65, 317.99°)
OKLaboklab(36.75% 0.1045 -0.1129)
OKLCHoklch(36.75% 0.154 312.8)
XYZxyz(7.8933, 4.2011, 17.8443)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1977 #367719
analogous
#2B1977 #5A1977 #771965
triadic
#5A1977 #775A19 #19775A
tetradic
#5A1977 #772B19 #367719 #196577
square
#5A1977 #772B19 #367719 #196577
split-complementary
#5A1977 #657719 #19772B
monochromatic
#130519 #340E44 #5A1977 #8024AA #A436D5

Accessibility & contrast

On white

11.41
#5A1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1977
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1977#FFFFFF#000000##FFFFFF
##5A19771.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#0D3B75
Tritanopia (blue-blind)
#572F47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1977;
/* rgb */ color: rgb(90, 25, 119);
/* oklch */ color: oklch(36.7% 0.154 312.8);
Tailwind
colors: {
  custom: {
    50: '#8c5e9f',
    500: '#5a1977',
    950: '#000000',
  },
}
SCSS
$custom: #5a1977;
$custom-light: #8c5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1977",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 281.489,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36748,
    "c": 0.15381,
    "h": 312.8
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#5A1977
secondary
#61AC40
accent
#E84074
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A1977

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

Preview Lab → · Contrast checker → · Palette generator →

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