#7A5AEB#7A5AEB

#7A5AEB is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 57.9% C 0.208 H 288.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7A5AEB
RGBrgb(122, 90, 235)
HSLhsl(253, 78%, 64%)
HSVhsv(253, 62%, 92%)
CMYKcmyk(48.1%, 61.7%, 0%, 7.8%)
CIE-LABlab(48.82, 47.96, -69.12)
CIE-LCHlch(48.82, 84.13, 304.76°)
OKLaboklab(57.91% 0.0653 -0.1979)
OKLCHoklch(57.91% 0.208 288.3)
XYZxyz(26.6733, 17.4469, 80.5433)
Luminance0.1745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AEB #CBEB5A
analogous
#5A82EB #7A5AEB #C25AEB
triadic
#7A5AEB #EB7A5A #5AEB7A
tetradic
#7A5AEB #EB5A82 #CBEB5A #5AEBC2
square
#7A5AEB #EB5A82 #CBEB5A #5AEBC2
split-complementary
#7A5AEB #EBC25A #82EB5A
monochromatic
#3916B5 #4E23E4 #7A5AEB #A691F2 #D2C7F8

Accessibility & contrast

On white

4.68
#7A5AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7A5AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5AEB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AEB#FFFFFF#000000##FFFFFF
##7A5AEB1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#547C9A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5aeb;
/* rgb */ color: rgb(122, 90, 235);
/* oklch */ color: oklch(57.9% 0.208 288.3);
Tailwind
colors: {
  custom: {
    50: '#a98af2',
    500: '#7a5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #7a5aeb;
$custom-light: #a98af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5aeb",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 253.241,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57912,
    "c": 0.20838,
    "h": 288.3
  },
  "luminance": 0.17448
}

Semantic roles & 50–950 ramp

primary
#7A5AEB
secondary
#DFEAB7
accent
#DB0BAD
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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