#5A1054#5A1054

#5A1054 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.132 H 331.8°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#5A1054
RGBrgb(90, 16, 84)
HSLhsl(305, 70%, 21%)
HSVhsv(305, 82%, 35%)
CMYKcmyk(0%, 82.2%, 6.7%, 64.7%)
CIE-LABlab(20.77, 40.62, -22.70)
CIE-LCHlch(20.77, 46.53, 330.81°)
OKLaboklab(33.45% 0.1164 -0.0625)
OKLCHoklch(33.45% 0.132 331.8)
XYZxyz(6.0020, 3.1848, 8.6844)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1054 #105A16
analogous
#3B105A #5A1054 #5A102F
triadic
#5A1054 #545A10 #10545A
tetradic
#5A1054 #5A3B10 #105A16 #102F5A
square
#5A1054 #5A3B10 #105A16 #102F5A
split-complementary
#5A1054 #2F5A10 #105A3B
monochromatic
#1A0518 #260724 #5A1054 #8E1984 #C222B5

Accessibility & contrast

On white

12.83
#5A1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1054
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1054#FFFFFF#000000##FFFFFF
##5A10541.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092B56
Deuteranopia (green-blind)
#293652
Tritanopia (blue-blind)
#5E1931
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1054;
/* rgb */ color: rgb(90, 16, 84);
/* oklch */ color: oklch(33.5% 0.132 331.8);
Tailwind
colors: {
  custom: {
    50: '#8c5884',
    500: '#5a1054',
    950: '#000000',
  },
}
SCSS
$custom: #5a1054;
$custom-light: #8c5884;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1054",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 304.865,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33451,
    "c": 0.13209,
    "h": 331.8
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#5A1054
secondary
#33933A
accent
#ED4A3B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1054

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

Preview Lab → · Contrast checker → · Palette generator →

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