#5A2AAF#5A2AAF

#5A2AAF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.195 H 292.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5A2AAF
RGBrgb(90, 42, 175)
HSLhsl(262, 61%, 43%)
HSVhsv(262, 76%, 69%)
CMYKcmyk(48.6%, 76%, 0%, 31.4%)
CIE-LABlab(31.63, 50.84, -62.54)
CIE-LCHlch(31.63, 80.60, 309.10°)
OKLaboklab(43.35% 0.0755 -0.1795)
OKLCHoklch(43.35% 0.195 292.8)
XYZxyz(12.7801, 6.9243, 41.2123)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AAF #7FAF2A
analogous
#2A3DAF #5A2AAF #9C2AAF
triadic
#5A2AAF #AF5A2A #2AAF5A
tetradic
#5A2AAF #AF2A3D #7FAF2A #2AAF9C
square
#5A2AAF #AF2A3D #7FAF2A #2AAF9C
split-complementary
#5A2AAF #AF9C2A #3DAF2A
monochromatic
#27124C #411E7E #5A2AAF #7744D2 #9B75DE

Accessibility & contrast

On white

8.81
#5A2AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A2AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AAF
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AAF#FFFFFF#000000##FFFFFF
##5A2AAF1.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#3F4E6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2aaf;
/* rgb */ color: rgb(90, 42, 175);
/* oklch */ color: oklch(43.4% 0.195 292.8);
Tailwind
colors: {
  custom: {
    50: '#9169c8',
    500: '#5a2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aaf;
$custom-light: #9169c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aaf",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 261.654,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43353,
    "c": 0.19471,
    "h": 292.8
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#5A2AAF
secondary
#A6C66F
accent
#E443AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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