#7A5AEE#7A5AEE

#7A5AEE is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.1% C 0.212 H 287.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7A5AEE
RGBrgb(122, 90, 238)
HSLhsl(253, 81%, 64%)
HSVhsv(253, 62%, 93%)
CMYKcmyk(48.7%, 62.2%, 0%, 6.7%)
CIE-LABlab(49.03, 48.81, -70.46)
CIE-LCHlch(49.03, 85.71, 304.71°)
OKLaboklab(58.14% 0.0651 -0.2018)
OKLCHoklch(58.14% 0.212 287.9)
XYZxyz(27.1103, 17.6217, 82.8452)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AEE #CEEE5A
analogous
#5A84EE #7A5AEE #C45AEE
triadic
#7A5AEE #EE7A5A #5AEE7A
tetradic
#7A5AEE #EE5A84 #CEEE5A #5AEEC4
square
#7A5AEE #EE5A84 #CEEE5A #5AEEC4
split-complementary
#7A5AEE #EEC45A #84EE5A
monochromatic
#3713BA #4D23E8 #7A5AEE #A791F4 #D3C9F9

Accessibility & contrast

On white

4.64
#7A5AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7A5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5AEE
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AEE#FFFFFF#000000##FFFFFF
##7A5AEE1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#0071EB
Tritanopia (blue-blind)
#527D9C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5aee;
/* rgb */ color: rgb(122, 90, 238);
/* oklch */ color: oklch(58.1% 0.212 287.9);
Tailwind
colors: {
  custom: {
    50: '#a98af4',
    500: '#7a5aee',
    950: '#000000',
  },
}
SCSS
$custom: #7a5aee;
$custom-light: #a98af4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5aee",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 252.973,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58137,
    "c": 0.21204,
    "h": 287.9
  },
  "luminance": 0.17623
}

Semantic roles & 50–950 ramp

primary
#7A5AEE
secondary
#E0ECB8
accent
#DE08AF
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

#7A5AEE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva