#5A1B7A#5A1B7A

#5A1B7A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.155 H 311.3°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5A1B7A
RGBrgb(90, 27, 122)
HSLhsl(280, 64%, 29%)
HSVhsv(280, 78%, 48%)
CMYKcmyk(26.2%, 77.9%, 0%, 52.2%)
CIE-LABlab(24.84, 44.20, -41.01)
CIE-LCHlch(24.84, 60.29, 317.15°)
OKLaboklab(37.18% 0.102 -0.1161)
OKLCHoklch(37.18% 0.155 311.3)
XYZxyz(8.1206, 4.3629, 18.8229)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B7A #3B7A1B
analogous
#2A1B7A #5A1B7A #7A1B6B
triadic
#5A1B7A #7A5A1B #1B7A5A
tetradic
#5A1B7A #7A2A1B #3B7A1B #1B6B7A
square
#5A1B7A #7A2A1B #3B7A1B #1B6B7A
split-complementary
#5A1B7A #6B7A1B #1B7A2A
monochromatic
#120619 #351048 #5A1B7A #7F26AC #A13CD4

Accessibility & contrast

On white

11.21
#5A1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B7A
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B7A#FFFFFF#000000##FFFFFF
##5A1B7A1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#093C78
Tritanopia (blue-blind)
#563149
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1b7a;
/* rgb */ color: rgb(90, 27, 122);
/* oklch */ color: oklch(37.2% 0.155 311.3);
Tailwind
colors: {
  custom: {
    50: '#8c5fa1',
    500: '#5a1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b7a;
$custom-light: #8c5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b7a",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 279.789,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37182,
    "c": 0.15451,
    "h": 311.3
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#5A1B7A
secondary
#67AE43
accent
#E74179
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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