#7A5AE5#7A5AE5

#7A5AE5 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.5% C 0.201 H 289.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7A5AE5
RGBrgb(122, 90, 229)
HSLhsl(254, 73%, 63%)
HSVhsv(254, 61%, 90%)
CMYKcmyk(46.7%, 60.7%, 0%, 10.2%)
CIE-LABlab(48.39, 46.27, -66.43)
CIE-LCHlch(48.39, 80.96, 304.86°)
OKLaboklab(57.47% 0.0657 -0.1899)
OKLCHoklch(57.47% 0.201 289.1)
XYZxyz(25.8210, 17.1060, 76.0548)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AE5 #C5E55A
analogous
#5A7FE5 #7A5AE5 #C05AE5
triadic
#7A5AE5 #E57A5A #5AE57A
tetradic
#7A5AE5 #E55A7F #C5E55A #5AE5C0
square
#7A5AE5 #E55A7F #C5E55A #5AE5C0
split-complementary
#7A5AE5 #E5C05A #7FE55A
monochromatic
#3C1BAA #4F25DD #7A5AE5 #A58FED #CFC4F6

Accessibility & contrast

On white

4.75
#7A5AE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7A5AE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5AE5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AE5#FFFFFF#000000##FFFFFF
##7A5AE51.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#577A97
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7a5ae5;
/* rgb */ color: rgb(122, 90, 229);
/* oklch */ color: oklch(57.5% 0.201 289.1);
Tailwind
colors: {
  custom: {
    50: '#a88aee',
    500: '#7a5ae5',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ae5;
$custom-light: #a88aee;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ae5",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 229
  },
  "hsl": {
    "h": 253.813,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57468,
    "c": 0.201,
    "h": 289.1
  },
  "luminance": 0.17107
}

Semantic roles & 50–950 ramp

primary
#7A5AE5
secondary
#DBE7B4
accent
#D511A8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7A5AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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