#5A1C91#5A1C91

#5A1C91 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.177 H 302.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5A1C91
RGBrgb(90, 28, 145)
HSLhsl(272, 68%, 34%)
HSVhsv(272, 81%, 57%)
CMYKcmyk(37.9%, 80.7%, 0%, 43.1%)
CIE-LABlab(26.87, 49.19, -52.11)
CIE-LCHlch(26.87, 71.66, 313.35°)
OKLaboklab(39.2% 0.0955 -0.1487)
OKLCHoklch(39.2% 0.177 302.7)
XYZxyz(9.7413, 5.0485, 27.2438)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C91 #53911C
analogous
#201C91 #5A1C91 #911C8E
triadic
#5A1C91 #915A1C #1C915A
tetradic
#5A1C91 #91201C #53911C #1C8E91
square
#5A1C91 #91201C #53911C #1C8E91
split-complementary
#5A1C91 #8E911C #1C9120
monochromatic
#1A082A #3A125E #5A1C91 #7A26C4 #984BDC

Accessibility & contrast

On white

10.45
#5A1C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A1C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C91
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C91#FFFFFF#000000##FFFFFF
##5A1C911.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#4E3C57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a1c91;
/* rgb */ color: rgb(90, 28, 145);
/* oklch */ color: oklch(39.2% 0.177 302.7);
Tailwind
colors: {
  custom: {
    50: '#8e60b2',
    500: '#5a1c91',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c91;
$custom-light: #8e60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c91",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 271.795,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39203,
    "c": 0.17676,
    "h": 302.7
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#5A1C91
secondary
#81BE4A
accent
#EB3D8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1C91

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

Preview Lab → · Contrast checker → · Palette generator →

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