#5A2490#5A2490

#5A2490 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.167 H 302.0°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5A2490
RGBrgb(90, 36, 144)
HSLhsl(270, 60%, 35%)
HSVhsv(270, 75%, 56%)
CMYKcmyk(37.5%, 75%, 0%, 43.5%)
CIE-LABlab(27.98, 45.54, -49.69)
CIE-LCHlch(27.98, 67.40, 312.50°)
OKLaboklab(39.95% 0.0885 -0.1417)
OKLCHoklch(39.95% 0.167 302)
XYZxyz(9.8802, 5.4490, 26.9114)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2490 #5A9024
analogous
#242490 #5A2490 #902490
triadic
#5A2490 #905A24 #24905A
tetradic
#5A2490 #902424 #5A9024 #249090
square
#5A2490 #902424 #5A9024 #249090
split-complementary
#5A2490 #909024 #249024
monochromatic
#1D0C2E #3B185F #5A2490 #7930C1 #9759D5

Accessibility & contrast

On white

10.05
#5A2490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5A2490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2490
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2490#FFFFFF#000000##FFFFFF
##5A24901.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2490;
/* rgb */ color: rgb(90, 36, 144);
/* oklch */ color: oklch(40.0% 0.167 302.0);
Tailwind
colors: {
  custom: {
    50: '#8e64b1',
    500: '#5a2490',
    950: '#000000',
  },
}
SCSS
$custom: #5a2490;
$custom-light: #8e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2490",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 144
  },
  "hsl": {
    "h": 270,
    "s": 60,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39952,
    "c": 0.16708,
    "h": 302
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#5A2490
secondary
#88BA56
accent
#E34594
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2490

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

Preview Lab → · Contrast checker → · Palette generator →

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