#5A1EA0#5A1EA0

#5A1EA0 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.190 H 298.0°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5A1EA0
RGBrgb(90, 30, 160)
HSLhsl(268, 68%, 37%)
HSVhsv(268, 81%, 63%)
CMYKcmyk(43.7%, 81.3%, 0%, 37.3%)
CIE-LABlab(28.49, 52.09, -58.67)
CIE-LCHlch(28.49, 78.45, 311.60°)
OKLaboklab(40.74% 0.0894 -0.168)
OKLCHoklch(40.74% 0.19 298)
XYZxyz(11.0242, 5.6401, 33.7587)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1EA0 #64A01E
analogous
#1E23A0 #5A1EA0 #9B1EA0
triadic
#5A1EA0 #A05A1E #1EA05A
tetradic
#5A1EA0 #A01E23 #64A01E #1EA09B
square
#5A1EA0 #A01E23 #64A01E #1EA09B
split-complementary
#5A1EA0 #A09B1E #23A01E
monochromatic
#200B39 #3D146C #5A1EA0 #7728D4 #9759E0

Accessibility & contrast

On white

9.87
#5A1EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A1EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1EA0
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1EA0#FFFFFF#000000##FFFFFF
##5A1EA01.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#484360
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a1ea0;
/* rgb */ color: rgb(90, 30, 160);
/* oklch */ color: oklch(40.7% 0.190 298.0);
Tailwind
colors: {
  custom: {
    50: '#9062bd',
    500: '#5a1ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5a1ea0;
$custom-light: #9062bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1ea0",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 267.692,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40738,
    "c": 0.19028,
    "h": 298
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#5A1EA0
secondary
#91C456
accent
#EB3D9B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A1EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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