#5A2FA2#5A2FA2

#5A2FA2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.174 H 295.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5A2FA2
RGBrgb(90, 47, 162)
HSLhsl(262, 55%, 41%)
HSVhsv(262, 71%, 64%)
CMYKcmyk(44.4%, 71%, 0%, 36.5%)
CIE-LABlab(31.38, 44.87, -55.14)
CIE-LCHlch(31.38, 71.09, 309.13°)
OKLaboklab(42.83% 0.0739 -0.1578)
OKLCHoklch(42.83% 0.174 295.1)
XYZxyz(11.7528, 6.8150, 34.8716)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FA2 #77A22F
analogous
#2F3DA2 #5A2FA2 #932FA2
triadic
#5A2FA2 #A25A2F #2FA25A
tetradic
#5A2FA2 #A22F3D #77A22F #2FA293
square
#5A2FA2 #A22F3D #77A22F #2FA293
split-complementary
#5A2FA2 #A2932F #3DA22F
monochromatic
#251343 #402173 #5A2FA2 #7645C9 #9975D7

Accessibility & contrast

On white

8.89
#5A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5A2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FA2
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FA2#FFFFFF#000000##FFFFFF
##5A2FA21.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2fa2;
/* rgb */ color: rgb(90, 47, 162);
/* oklch */ color: oklch(42.8% 0.174 295.1);
Tailwind
colors: {
  custom: {
    50: '#8f6bbe',
    500: '#5a2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fa2;
$custom-light: #8f6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fa2",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 262.435,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.17423,
    "h": 295.1
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

primary
#5A2FA2
secondary
#A1BF6E
accent
#DE49A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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