#5A1A8A#5A1A8A

#5A1A8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.172 H 305.3°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5A1A8A
RGBrgb(90, 26, 138)
HSLhsl(274, 68%, 32%)
HSVhsv(274, 81%, 54%)
CMYKcmyk(34.8%, 81.2%, 0%, 45.9%)
CIE-LABlab(26.00, 48.29, -49.18)
CIE-LCHlch(26.00, 68.93, 314.48°)
OKLaboklab(38.41% 0.0991 -0.1401)
OKLCHoklch(38.41% 0.172 305.3)
XYZxyz(9.1723, 4.7475, 24.4730)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A8A #4A8A1A
analogous
#221A8A #5A1A8A #8A1A82
triadic
#5A1A8A #8A5A1A #1A8A5A
tetradic
#5A1A8A #8A221A #4A8A1A #1A828A
square
#5A1A8A #8A221A #4A8A1A #1A828A
split-complementary
#5A1A8A #828A1A #1A8A22
monochromatic
#170723 #381057 #5A1A8A #7C24BD #9A43DC

Accessibility & contrast

On white

10.77
#5A1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A8A
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A8A#FFFFFF#000000##FFFFFF
##5A1A8A1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#513852
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a1a8a;
/* rgb */ color: rgb(90, 26, 138);
/* oklch */ color: oklch(38.4% 0.172 305.3);
Tailwind
colors: {
  custom: {
    50: '#8e5fad',
    500: '#5a1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a8a;
$custom-light: #8e5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a8a",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 274.286,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38409,
    "c": 0.17164,
    "h": 305.3
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#5A1A8A
secondary
#77BD43
accent
#EB3D87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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