#5A2AC7#5A2AC7

#5A2AC7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.221 H 288.1°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5A2AC7
RGBrgb(90, 42, 199)
HSLhsl(258, 65%, 47%)
HSVhsv(258, 79%, 78%)
CMYKcmyk(54.8%, 78.9%, 0%, 22%)
CIE-LABlab(33.88, 57.27, -73.03)
CIE-LCHlch(33.88, 92.81, 308.10°)
OKLaboklab(45.61% 0.0685 -0.2102)
OKLCHoklch(45.61% 0.221 288.1)
XYZxyz(15.3502, 7.9523, 54.7479)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AC7 #97C72A
analogous
#2A49C7 #5A2AC7 #A92AC7
triadic
#5A2AC7 #C75A2A #2AC75A
tetradic
#5A2AC7 #C72A49 #97C72A #2AC7A9
square
#5A2AC7 #C72A49 #97C72A #2AC7A9
split-complementary
#5A2AC7 #C7A92A #49C72A
monochromatic
#2C1562 #431F94 #5A2AC7 #7D53DB #A386E5

Accessibility & contrast

On white

8.11
#5A2AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A2AC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AC7
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AC7#FFFFFF#000000##FFFFFF
##5A2AC71.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#2B5879
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a2ac7;
/* rgb */ color: rgb(90, 42, 199);
/* oklch */ color: oklch(45.6% 0.221 288.1);
Tailwind
colors: {
  custom: {
    50: '#956ad9',
    500: '#5a2ac7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ac7;
$custom-light: #956ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ac7",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 258.344,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.22106,
    "h": 288.1
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

primary
#5A2AC7
secondary
#B6CF7E
accent
#E840B5
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5A2AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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