#5A2FAA#5A2FAA

#5A2FAA is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.184 H 293.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5A2FAA
RGBrgb(90, 47, 170)
HSLhsl(261, 57%, 43%)
HSVhsv(261, 72%, 67%)
CMYKcmyk(47.1%, 72.4%, 0%, 33.3%)
CIE-LABlab(32.05, 47.05, -58.87)
CIE-LCHlch(32.05, 75.36, 308.64°)
OKLaboklab(43.51% 0.0723 -0.1687)
OKLCHoklch(43.51% 0.184 293.2)
XYZxyz(12.4867, 7.1086, 38.7366)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FAA #7FAA2F
analogous
#2F41AA #5A2FAA #982FAA
triadic
#5A2FAA #AA5A2F #2FAA5A
tetradic
#5A2FAA #AA2F41 #7FAA2F #2FAA98
square
#5A2FAA #AA2F41 #7FAA2F #2FAA98
split-complementary
#5A2FAA #AA982F #41AA2F
monochromatic
#27144A #41227A #5A2FAA #7749CD #9B79DA

Accessibility & contrast

On white

8.67
#5A2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FAA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FAA#FFFFFF#000000##FFFFFF
##5A2FAA1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#424F69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2faa;
/* rgb */ color: rgb(90, 47, 170);
/* oklch */ color: oklch(43.5% 0.184 293.2);
Tailwind
colors: {
  custom: {
    50: '#906bc4',
    500: '#5a2faa',
    950: '#000000',
  },
}
SCSS
$custom: #5a2faa;
$custom-light: #906bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2faa",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 260.976,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43514,
    "c": 0.18356,
    "h": 293.2
  },
  "luminance": 0.07109
}

Semantic roles & 50–950 ramp

primary
#5A2FAA
secondary
#A6C272
accent
#E048AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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