#5A2AB7#5A2AB7

#5A2AB7 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.1% C 0.204 H 291.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5A2AB7
RGBrgb(90, 42, 183)
HSLhsl(260, 63%, 44%)
HSVhsv(260, 77%, 72%)
CMYKcmyk(50.8%, 77%, 0%, 28.2%)
CIE-LABlab(32.36, 52.98, -66.11)
CIE-LCHlch(32.36, 84.72, 308.71°)
OKLaboklab(44.09% 0.0733 -0.1899)
OKLCHoklch(44.09% 0.204 291.1)
XYZxyz(13.5892, 7.2479, 45.4735)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AB7 #87B72A
analogous
#2A40B7 #5A2AB7 #A12AB7
triadic
#5A2AB7 #B75A2A #2AB75A
tetradic
#5A2AB7 #B72A40 #87B72A #2AB7A1
square
#5A2AB7 #B72A40 #87B72A #2AB7A1
split-complementary
#5A2AB7 #B7A12A #40B72A
monochromatic
#291353 #421F85 #5A2AB7 #7949D5 #9D7BE1

Accessibility & contrast

On white

8.57
#5A2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AB7
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AB7#FFFFFF#000000##FFFFFF
##5A2AB71.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#3A526F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2ab7;
/* rgb */ color: rgb(90, 42, 183);
/* oklch */ color: oklch(44.1% 0.204 291.1);
Tailwind
colors: {
  custom: {
    50: '#9269ce',
    500: '#5a2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ab7;
$custom-light: #9269ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ab7",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 260.426,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44088,
    "c": 0.20356,
    "h": 291.1
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#5A2AB7
secondary
#ACC974
accent
#E642AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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