#5A1B7D#5A1B7D

#5A1B7D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.158 H 310.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5A1B7D
RGBrgb(90, 27, 125)
HSLhsl(279, 64%, 30%)
HSVhsv(279, 78%, 49%)
CMYKcmyk(28%, 78.4%, 0%, 51%)
CIE-LABlab(25.07, 44.88, -42.53)
CIE-LCHlch(25.07, 61.83, 316.54°)
OKLaboklab(37.42% 0.1014 -0.1206)
OKLCHoklch(37.42% 0.158 310.1)
XYZxyz(8.3093, 4.4384, 19.8170)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B7D #3E7D1B
analogous
#291B7D #5A1B7D #7D1B6F
triadic
#5A1B7D #7D5A1B #1B7D5A
tetradic
#5A1B7D #7D291B #3E7D1B #1B6F7D
square
#5A1B7D #7D291B #3E7D1B #1B6F7D
split-complementary
#5A1B7D #6F7D1B #1B7D29
monochromatic
#120519 #36104B #5A1B7D #7E26AF #9F3DD5

Accessibility & contrast

On white

11.13
#5A1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B7D
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B7D#FFFFFF#000000##FFFFFF
##5A1B7D1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#55324B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1b7d;
/* rgb */ color: rgb(90, 27, 125);
/* oklch */ color: oklch(37.4% 0.158 310.1);
Tailwind
colors: {
  custom: {
    50: '#8d5fa3',
    500: '#5a1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b7d;
$custom-light: #8d5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b7d",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 278.571,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37421,
    "c": 0.15753,
    "h": 310.1
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#5A1B7D
secondary
#6AB143
accent
#E7407C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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