#5A1A7E#5A1A7E

#5A1A7E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.160 H 309.8°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#5A1A7E
RGBrgb(90, 26, 126)
HSLhsl(278, 66%, 30%)
HSVhsv(278, 79%, 49%)
CMYKcmyk(28.6%, 79.4%, 0%, 50.6%)
CIE-LABlab(25.01, 45.51, -43.26)
CIE-LCHlch(25.01, 62.79, 316.45°)
OKLaboklab(37.4% 0.1021 -0.1227)
OKLCHoklch(37.4% 0.16 309.8)
XYZxyz(8.3510, 4.4190, 20.1476)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A7E #3E7E1A
analogous
#281A7E #5A1A7E #7E1A70
triadic
#5A1A7E #7E5A1A #1A7E5A
tetradic
#5A1A7E #7E281A #3E7E1A #1A707E
square
#5A1A7E #7E281A #3E7E1A #1A707E
split-complementary
#5A1A7E #707E1A #1A7E28
monochromatic
#120519 #36104B #5A1A7E #7E24B1 #9F3CD7

Accessibility & contrast

On white

11.15
#5A1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5A1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A7E
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A7E#FFFFFF#000000##FFFFFF
##5A1A7E1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#55324B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1a7e;
/* rgb */ color: rgb(90, 26, 126);
/* oklch */ color: oklch(37.4% 0.160 309.8);
Tailwind
colors: {
  custom: {
    50: '#8d5ea4',
    500: '#5a1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a7e;
$custom-light: #8d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a7e",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 278.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37404,
    "c": 0.15964,
    "h": 309.8
  },
  "luminance": 0.04419
}

Semantic roles & 50–950 ramp

primary
#5A1A7E
secondary
#6AB242
accent
#E93F7C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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