#5A1052#5A1052

#5A1052 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.130 H 333.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5A1052
RGBrgb(90, 16, 82)
HSLhsl(306, 70%, 21%)
HSVhsv(306, 82%, 35%)
CMYKcmyk(0%, 82.2%, 8.9%, 64.7%)
CIE-LABlab(20.65, 40.28, -21.54)
CIE-LCHlch(20.65, 45.67, 331.87°)
OKLaboklab(33.33% 0.1163 -0.0591)
OKLCHoklch(33.33% 0.13 333)
XYZxyz(5.9248, 3.1539, 8.2777)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1052 #105A18
analogous
#3D105A #5A1052 #5A102D
triadic
#5A1052 #525A10 #10525A
tetradic
#5A1052 #5A3D10 #105A18 #102D5A
square
#5A1052 #5A3D10 #105A18 #102D5A
split-complementary
#5A1052 #2D5A10 #105A3D
monochromatic
#1A0518 #260723 #5A1052 #8E1981 #C222B1

Accessibility & contrast

On white

12.88
#5A1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1052
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1052#FFFFFF#000000##FFFFFF
##5A10521.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2B54
Deuteranopia (green-blind)
#2A3550
Tritanopia (blue-blind)
#5E1830
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1052;
/* rgb */ color: rgb(90, 16, 82);
/* oklch */ color: oklch(33.3% 0.130 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5a1052',
    950: '#000000',
  },
}
SCSS
$custom: #5a1052;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1052",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 306.486,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.13047,
    "h": 333
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#5A1052
secondary
#33933D
accent
#ED4E3B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1052

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

Preview Lab → · Contrast checker → · Palette generator →

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