#5A2FA9#5A2FA9

#5A2FA9 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.182 H 293.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5A2FA9
RGBrgb(90, 47, 169)
HSLhsl(261, 56%, 42%)
HSVhsv(261, 72%, 66%)
CMYKcmyk(46.7%, 72.2%, 0%, 33.7%)
CIE-LABlab(31.97, 46.78, -58.40)
CIE-LCHlch(31.97, 74.83, 308.69°)
OKLaboklab(43.43% 0.0725 -0.1673)
OKLCHoklch(43.43% 0.182 293.4)
XYZxyz(12.3924, 7.0709, 38.2403)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FA9 #7EA92F
analogous
#2F41A9 #5A2FA9 #972FA9
triadic
#5A2FA9 #A95A2F #2FA95A
tetradic
#5A2FA9 #A92F41 #7EA92F #2FA997
square
#5A2FA9 #A92F41 #7EA92F #2FA997
split-complementary
#5A2FA9 #A9972F #41A92F
monochromatic
#271449 #412279 #5A2FA9 #7749CC #9B79DA

Accessibility & contrast

On white

8.70
#5A2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FA9
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FA9#FFFFFF#000000##FFFFFF
##5A2FA91.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#424E69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2fa9;
/* rgb */ color: rgb(90, 47, 169);
/* oklch */ color: oklch(43.4% 0.182 293.4);
Tailwind
colors: {
  custom: {
    50: '#906bc4',
    500: '#5a2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fa9;
$custom-light: #906bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fa9",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 261.148,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43427,
    "c": 0.1824,
    "h": 293.4
  },
  "luminance": 0.07071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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