#5A1C8A#5A1C8A

#5A1C8A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.170 H 305.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5A1C8A
RGBrgb(90, 28, 138)
HSLhsl(274, 66%, 33%)
HSVhsv(274, 80%, 54%)
CMYKcmyk(34.8%, 79.7%, 0%, 45.9%)
CIE-LABlab(26.27, 47.52, -48.74)
CIE-LCHlch(26.27, 68.07, 314.27°)
OKLaboklab(38.6% 0.0974 -0.1388)
OKLCHoklch(38.6% 0.17 305.1)
XYZxyz(9.2181, 4.8392, 24.4883)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C8A #4C8A1C
analogous
#231C8A #5A1C8A #8A1C83
triadic
#5A1C8A #8A5A1C #1C8A5A
tetradic
#5A1C8A #8A231C #4C8A1C #1C838A
square
#5A1C8A #8A231C #4C8A1C #1C838A
split-complementary
#5A1C8A #838A1C #1C8A23
monochromatic
#180724 #391257 #5A1C8A #7B26BD #9A47DA

Accessibility & contrast

On white

10.67
#5A1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5A1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C8A
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C8A#FFFFFF#000000##FFFFFF
##5A1C8A1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1c8a;
/* rgb */ color: rgb(90, 28, 138);
/* oklch */ color: oklch(38.6% 0.170 305.1);
Tailwind
colors: {
  custom: {
    50: '#8e60ad',
    500: '#5a1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c8a;
$custom-light: #8e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c8a",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 273.818,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38596,
    "c": 0.16962,
    "h": 305.1
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#5A1C8A
secondary
#79BB46
accent
#E93F89
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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