#5A1774#5A1774

#5A1774 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.153 H 314.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5A1774
RGBrgb(90, 23, 116)
HSLhsl(283, 67%, 27%)
HSVhsv(283, 80%, 45%)
CMYKcmyk(22.4%, 80.2%, 0%, 54.5%)
CIE-LABlab(23.83, 44.44, -38.81)
CIE-LCHlch(23.83, 59.00, 318.87°)
OKLaboklab(36.33% 0.1069 -0.1096)
OKLCHoklch(36.33% 0.153 314.3)
XYZxyz(7.6747, 4.0477, 16.8966)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1774 #317417
analogous
#2C1774 #5A1774 #74175F
triadic
#5A1774 #745A17 #17745A
tetradic
#5A1774 #742C17 #317417 #175F74
square
#5A1774 #742C17 #317417 #175F74
split-complementary
#5A1774 #5F7417 #17742C
monochromatic
#14051A #320D41 #5A1774 #8221A7 #A730D6

Accessibility & contrast

On white

11.61
#5A1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1774
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1774#FFFFFF#000000##FFFFFF
##5A17741.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#103A72
Tritanopia (blue-blind)
#582D45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1774;
/* rgb */ color: rgb(90, 23, 116);
/* oklch */ color: oklch(36.3% 0.153 314.3);
Tailwind
colors: {
  custom: {
    50: '#8c5d9d',
    500: '#5a1774',
    950: '#000000',
  },
}
SCSS
$custom: #5a1774;
$custom-light: #8c5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1774",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 283.226,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36325,
    "c": 0.15311,
    "h": 314.3
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#5A1774
secondary
#5CA93D
accent
#EA3E6E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1774

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

Preview Lab → · Contrast checker → · Palette generator →

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