#7A5AE7#7A5AE7

#7A5AE7 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.6% C 0.203 H 288.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7A5AE7
RGBrgb(122, 90, 231)
HSLhsl(254, 75%, 63%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(47.2%, 61%, 0%, 9.4%)
CIE-LABlab(48.53, 46.83, -67.33)
CIE-LCHlch(48.53, 82.02, 304.82°)
OKLaboklab(57.62% 0.0656 -0.1926)
OKLCHoklch(57.62% 0.203 288.8)
XYZxyz(26.1019, 17.2184, 77.5340)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AE7 #C7E75A
analogous
#5A80E7 #7A5AE7 #C05AE7
triadic
#7A5AE7 #E77A5A #5AE77A
tetradic
#7A5AE7 #E75A80 #C7E75A #5AE7C0
square
#7A5AE7 #E75A80 #C7E75A #5AE7C0
split-complementary
#7A5AE7 #E7C05A #80E75A
monochromatic
#3B19AD #4F25DF #7A5AE7 #A58FEF #D0C5F7

Accessibility & contrast

On white

4.73
#7A5AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7A5AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5AE7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AE7#FFFFFF#000000##FFFFFF
##7A5AE71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#0070E4
Tritanopia (blue-blind)
#567B98
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7a5ae7;
/* rgb */ color: rgb(122, 90, 231);
/* oklch */ color: oklch(57.6% 0.203 288.8);
Tailwind
colors: {
  custom: {
    50: '#a88aef',
    500: '#7a5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ae7;
$custom-light: #a88aef;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ae7",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 253.617,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57615,
    "c": 0.20347,
    "h": 288.8
  },
  "luminance": 0.17219
}

Semantic roles & 50–950 ramp

primary
#7A5AE7
secondary
#DCE8B5
accent
#D70FA9
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7A5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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