#5A1C8D#5A1C8D

#5A1C8D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.173 H 304.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5A1C8D
RGBrgb(90, 28, 141)
HSLhsl(273, 67%, 33%)
HSVhsv(273, 80%, 55%)
CMYKcmyk(36.2%, 80.1%, 0%, 44.7%)
CIE-LABlab(26.53, 48.23, -50.20)
CIE-LCHlch(26.53, 69.61, 313.86°)
OKLaboklab(38.85% 0.0966 -0.1431)
OKLCHoklch(38.85% 0.173 304)
XYZxyz(9.4383, 4.9273, 25.6480)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C8D #4F8D1C
analogous
#211C8D #5A1C8D #8D1C87
triadic
#5A1C8D #8D5A1C #1C8D5A
tetradic
#5A1C8D #8D211C #4F8D1C #1C878D
square
#5A1C8D #8D211C #4F8D1C #1C878D
split-complementary
#5A1C8D #878D1C #1C8D21
monochromatic
#190827 #39125A #5A1C8D #7B26C0 #9949DB

Accessibility & contrast

On white

10.58
#5A1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C8D
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C8D#FFFFFF#000000##FFFFFF
##5A1C8D1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#503A54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1c8d;
/* rgb */ color: rgb(90, 28, 141);
/* oklch */ color: oklch(38.9% 0.173 304.0);
Tailwind
colors: {
  custom: {
    50: '#8e60af',
    500: '#5a1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c8d;
$custom-light: #8e60af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c8d",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 272.92,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.17269,
    "h": 304
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#5A1C8D
secondary
#7DBD48
accent
#EA3E8C
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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