#5A1056#5A1056

#5A1056 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.134 H 330.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#5A1056
RGBrgb(90, 16, 86)
HSLhsl(303, 70%, 21%)
HSVhsv(303, 82%, 35%)
CMYKcmyk(0%, 82.2%, 4.4%, 64.7%)
CIE-LABlab(20.89, 40.97, -23.85)
CIE-LCHlch(20.89, 47.40, 329.80°)
OKLaboklab(33.58% 0.1164 -0.0658)
OKLCHoklch(33.58% 0.134 330.5)
XYZxyz(6.0814, 3.2166, 9.1029)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1056 #105A14
analogous
#39105A #5A1056 #5A1031
triadic
#5A1056 #565A10 #10565A
tetradic
#5A1056 #5A3910 #105A14 #10315A
square
#5A1056 #5A3910 #105A14 #10315A
split-complementary
#5A1056 #315A10 #105A39
monochromatic
#1A0519 #260724 #5A1056 #8E1988 #C222B9

Accessibility & contrast

On white

12.78
#5A1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1056
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1056#FFFFFF#000000##FFFFFF
##5A10561.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C58
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#5E1A32
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1056;
/* rgb */ color: rgb(90, 16, 86);
/* oklch */ color: oklch(33.6% 0.134 330.5);
Tailwind
colors: {
  custom: {
    50: '#8c5886',
    500: '#5a1056',
    950: '#000000',
  },
}
SCSS
$custom: #5a1056;
$custom-light: #8c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1056",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 303.243,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33577,
    "c": 0.13373,
    "h": 330.5
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#5A1056
secondary
#339338
accent
#ED453B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1056

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

Preview Lab → · Contrast checker → · Palette generator →

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