#5A1D91#5A1D91

#5A1D91 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.176 H 302.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5A1D91
RGBrgb(90, 29, 145)
HSLhsl(272, 67%, 34%)
HSVhsv(272, 80%, 57%)
CMYKcmyk(37.9%, 80%, 0%, 43.1%)
CIE-LABlab(27.01, 48.80, -51.89)
CIE-LCHlch(27.01, 71.23, 313.24°)
OKLaboklab(39.3% 0.0947 -0.1481)
OKLCHoklch(39.3% 0.176 302.6)
XYZxyz(9.7654, 5.0967, 27.2519)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D91 #54911D
analogous
#201D91 #5A1D91 #911D8E
triadic
#5A1D91 #915A1D #1D915A
tetradic
#5A1D91 #91201D #54911D #1D8E91
square
#5A1D91 #91201D #54911D #1D8E91
split-complementary
#5A1D91 #8E911D #1D9120
monochromatic
#1B092B #3A135E #5A1D91 #7A27C4 #984DDB

Accessibility & contrast

On white

10.40
#5A1D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5A1D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D91
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D91#FFFFFF#000000##FFFFFF
##5A1D911.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1d91;
/* rgb */ color: rgb(90, 29, 145);
/* oklch */ color: oklch(39.3% 0.176 302.6);
Tailwind
colors: {
  custom: {
    50: '#8e61b2',
    500: '#5a1d91',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d91;
$custom-light: #8e61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d91",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 271.552,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39298,
    "c": 0.17577,
    "h": 302.6
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#5A1D91
secondary
#82BE4C
accent
#EA3E8F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1D91

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

Preview Lab → · Contrast checker → · Palette generator →

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