#5A1076#5A1076

#5A1076 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.162 H 314.0°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5A1076
RGBrgb(90, 16, 118)
HSLhsl(284, 76%, 26%)
HSVhsv(284, 86%, 46%)
CMYKcmyk(23.7%, 86.4%, 0%, 53.7%)
CIE-LABlab(23.18, 47.21, -41.14)
CIE-LCHlch(23.18, 62.62, 318.93°)
OKLaboklab(35.92% 0.1123 -0.1164)
OKLCHoklch(35.92% 0.162 314)
XYZxyz(7.6712, 3.8525, 17.4755)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1076 #2C7610
analogous
#271076 #5A1076 #76105F
triadic
#5A1076 #765A10 #10765A
tetradic
#5A1076 #762710 #2C7610 #105F76
square
#5A1076 #762710 #2C7610 #105F76
split-complementary
#5A1076 #5F7610 #107627
monochromatic
#15041B #310940 #5A1076 #8317AC #AC20E1

Accessibility & contrast

On white

11.86
#5A1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1076
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1076#FFFFFF#000000##FFFFFF
##5A10761.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#023974
Tritanopia (blue-blind)
#572A45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1076;
/* rgb */ color: rgb(90, 16, 118);
/* oklch */ color: oklch(35.9% 0.162 314.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a9e',
    500: '#5a1076',
    950: '#000000',
  },
}
SCSS
$custom: #5a1076;
$custom-light: #8d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1076",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 283.529,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35918,
    "c": 0.16173,
    "h": 314
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#5A1076
secondary
#56AD35
accent
#F33569
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5A1076

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

Preview Lab → · Contrast checker → · Palette generator →

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