#5A2EA0#5A2EA0

#5A2EA0 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.173 H 295.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA0
RGBrgb(90, 46, 160)
HSLhsl(263, 55%, 40%)
HSVhsv(263, 71%, 63%)
CMYKcmyk(43.7%, 71.2%, 0%, 37.3%)
CIE-LABlab(31.03, 44.84, -54.50)
CIE-LCHlch(31.03, 70.57, 309.44°)
OKLaboklab(42.53% 0.0753 -0.1559)
OKLCHoklch(42.53% 0.173 295.8)
XYZxyz(11.5369, 6.6655, 33.9296)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA0 #74A02E
analogous
#2E3BA0 #5A2EA0 #932EA0
triadic
#5A2EA0 #A05A2E #2EA05A
tetradic
#5A2EA0 #A02E3B #74A02E #2EA093
square
#5A2EA0 #A02E3B #74A02E #2EA093
split-complementary
#5A2EA0 #A0932E #3BA02E
monochromatic
#251341 #3F2070 #5A2EA0 #7642C9 #9972D6

Accessibility & contrast

On white

9.00
#5A2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA0
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA0#FFFFFF#000000##FFFFFF
##5A2EA01.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#474A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ea0;
/* rgb */ color: rgb(90, 46, 160);
/* oklch */ color: oklch(42.5% 0.173 295.8);
Tailwind
colors: {
  custom: {
    50: '#8f6abd',
    500: '#5a2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea0;
$custom-light: #8f6abd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea0",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 263.158,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42529,
    "c": 0.17312,
    "h": 295.8
  },
  "luminance": 0.06666
}

Semantic roles & 50–950 ramp

primary
#5A2EA0
secondary
#9EBE6C
accent
#DF49A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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