#5A2AA7#5A2AA7

#5A2AA7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.186 H 294.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA7
RGBrgb(90, 42, 167)
HSLhsl(263, 60%, 41%)
HSVhsv(263, 75%, 65%)
CMYKcmyk(46.1%, 74.9%, 0%, 34.5%)
CIE-LABlab(30.92, 48.70, -58.91)
CIE-LCHlch(30.92, 76.43, 309.58°)
OKLaboklab(42.64% 0.0776 -0.1688)
OKLCHoklch(42.64% 0.186 294.7)
XYZxyz(12.0176, 6.6193, 37.1962)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA7 #77A72A
analogous
#2A38A7 #5A2AA7 #982AA7
triadic
#5A2AA7 #A75A2A #2AA75A
tetradic
#5A2AA7 #A72A38 #77A72A #2AA798
square
#5A2AA7 #A72A38 #77A72A #2AA798
split-complementary
#5A2AA7 #A7982A #38A72A
monochromatic
#251145 #401E76 #5A2AA7 #763FCF #9970DB

Accessibility & contrast

On white

9.04
#5A2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AA7
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA7#FFFFFF#000000##FFFFFF
##5A2AA71.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#444B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2aa7;
/* rgb */ color: rgb(90, 42, 167);
/* oklch */ color: oklch(42.6% 0.186 294.7);
Tailwind
colors: {
  custom: {
    50: '#9068c2',
    500: '#5a2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa7;
$custom-light: #9068c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa7",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 263.04,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42636,
    "c": 0.18577,
    "h": 294.7
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#5A2AA7
secondary
#A1C26B
accent
#E345A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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