#5A2491#5A2491

#5A2491 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.168 H 301.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5A2491
RGBrgb(90, 36, 145)
HSLhsl(270, 60%, 35%)
HSVhsv(270, 75%, 57%)
CMYKcmyk(37.9%, 75.2%, 0%, 43.1%)
CIE-LABlab(28.06, 45.79, -50.17)
CIE-LCHlch(28.06, 67.93, 312.38°)
OKLaboklab(40.04% 0.0883 -0.1431)
OKLCHoklch(40.04% 0.168 301.7)
XYZxyz(9.9569, 5.4797, 27.3157)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2491 #5B9124
analogous
#242491 #5A2491 #902491
triadic
#5A2491 #915A24 #24915A
tetradic
#5A2491 #912424 #5B9124 #249190
square
#5A2491 #912424 #5B9124 #249190
split-complementary
#5A2491 #919024 #249124
monochromatic
#1D0C2F #3C1860 #5A2491 #7830C2 #9759D6

Accessibility & contrast

On white

10.02
#5A2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2491
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2491#FFFFFF#000000##FFFFFF
##5A24911.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#4E3F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2491;
/* rgb */ color: rgb(90, 36, 145);
/* oklch */ color: oklch(40.0% 0.168 301.7);
Tailwind
colors: {
  custom: {
    50: '#8e64b2',
    500: '#5a2491',
    950: '#000000',
  },
}
SCSS
$custom: #5a2491;
$custom-light: #8e64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2491",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 269.725,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40036,
    "c": 0.16817,
    "h": 301.7
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#5A2491
secondary
#89BA56
accent
#E34495
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2491

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

Preview Lab → · Contrast checker → · Palette generator →

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