#5A2FA3#5A2FA3

#5A2FA3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.175 H 294.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5A2FA3
RGBrgb(90, 47, 163)
HSLhsl(262, 55%, 41%)
HSVhsv(262, 71%, 64%)
CMYKcmyk(44.8%, 71.2%, 0%, 36.1%)
CIE-LABlab(31.46, 45.14, -55.61)
CIE-LCHlch(31.46, 71.63, 309.06°)
OKLaboklab(42.91% 0.0737 -0.1592)
OKLCHoklch(42.91% 0.175 294.9)
XYZxyz(11.8420, 6.8507, 35.3416)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FA3 #78A32F
analogous
#2F3EA3 #5A2FA3 #942FA3
triadic
#5A2FA3 #A35A2F #2FA35A
tetradic
#5A2FA3 #A32F3E #78A32F #2FA394
square
#5A2FA3 #A32F3E #78A32F #2FA394
split-complementary
#5A2FA3 #A3942F #3EA32F
monochromatic
#261444 #402173 #5A2FA3 #7746CA #9A75D7

Accessibility & contrast

On white

8.86
#5A2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FA3
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FA3#FFFFFF#000000##FFFFFF
##5A2FA31.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#464C65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2fa3;
/* rgb */ color: rgb(90, 47, 163);
/* oklch */ color: oklch(42.9% 0.175 294.9);
Tailwind
colors: {
  custom: {
    50: '#8f6bbf',
    500: '#5a2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fa3;
$custom-light: #8f6bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fa3",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 262.241,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42914,
    "c": 0.1754,
    "h": 294.9
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#5A2FA3
secondary
#A1BF6F
accent
#DF49A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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