#5A1C8F#5A1C8F

#5A1C8F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.175 H 303.4°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5A1C8F
RGBrgb(90, 28, 143)
HSLhsl(272, 67%, 34%)
HSVhsv(272, 80%, 56%)
CMYKcmyk(37.1%, 80.4%, 0%, 43.9%)
CIE-LABlab(26.70, 48.71, -51.16)
CIE-LCHlch(26.70, 70.64, 313.60°)
OKLaboklab(39.03% 0.0961 -0.1459)
OKLCHoklch(39.03% 0.175 303.4)
XYZxyz(9.5885, 4.9873, 26.4388)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C8F #518F1C
analogous
#211C8F #5A1C8F #8F1C8A
triadic
#5A1C8F #8F5A1C #1C8F5A
tetradic
#5A1C8F #8F211C #518F1C #1C8A8F
square
#5A1C8F #8F211C #518F1C #1C8A8F
split-complementary
#5A1C8F #8A8F1C #1C8F21
monochromatic
#1A0829 #3A125C #5A1C8F #7A26C2 #984ADC

Accessibility & contrast

On white

10.51
#5A1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5A1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C8F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C8F#FFFFFF#000000##FFFFFF
##5A1C8F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#4F3B56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1c8f;
/* rgb */ color: rgb(90, 28, 143);
/* oklch */ color: oklch(39.0% 0.175 303.4);
Tailwind
colors: {
  custom: {
    50: '#8e60b1',
    500: '#5a1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c8f;
$custom-light: #8e60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c8f",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 272.348,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39028,
    "c": 0.17473,
    "h": 303.4
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#5A1C8F
secondary
#7FBE49
accent
#EA3E8D
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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