#5A1A8B#5A1A8B

#5A1A8B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.173 H 304.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5A1A8B
RGBrgb(90, 26, 139)
HSLhsl(274, 68%, 32%)
HSVhsv(274, 81%, 55%)
CMYKcmyk(35.3%, 81.3%, 0%, 45.5%)
CIE-LABlab(26.09, 48.53, -49.67)
CIE-LCHlch(26.09, 69.44, 314.34°)
OKLaboklab(38.5% 0.0989 -0.1415)
OKLCHoklch(38.5% 0.173 304.9)
XYZxyz(9.2450, 4.7766, 24.8560)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A8B #4B8B1A
analogous
#211A8B #5A1A8B #8B1A84
triadic
#5A1A8B #8B5A1A #1A8B5A
tetradic
#5A1A8B #8B211A #4B8B1A #1A848B
square
#5A1A8B #8B211A #4B8B1A #1A848B
split-complementary
#5A1A8B #848B1A #1A8B21
monochromatic
#170724 #391057 #5A1A8B #7B24BF #9A43DC

Accessibility & contrast

On white

10.74
#5A1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A8B
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A8B#FFFFFF#000000##FFFFFF
##5A1A8B1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#513853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a1a8b;
/* rgb */ color: rgb(90, 26, 139);
/* oklch */ color: oklch(38.5% 0.173 304.9);
Tailwind
colors: {
  custom: {
    50: '#8e5fae',
    500: '#5a1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a8b;
$custom-light: #8e5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a8b",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 273.982,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38495,
    "c": 0.17265,
    "h": 304.9
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

primary
#5A1A8B
secondary
#78BD44
accent
#EB3C88
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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