#7A5AFA#7A5AFA

#7A5AFA is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.1% C 0.227 H 286.4°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7A5AFA
RGBrgb(122, 90, 250)
HSLhsl(252, 94%, 67%)
HSVhsv(252, 64%, 98%)
CMYKcmyk(51.2%, 64%, 0%, 2%)
CIE-LABlab(49.92, 52.21, -75.73)
CIE-LCHlch(49.92, 91.98, 304.59°)
OKLaboklab(59.06% 0.064 -0.2173)
OKLCHoklch(59.06% 0.227 286.4)
XYZxyz(28.9324, 18.3506, 92.4415)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AFA #DAFA5A
analogous
#5A8AFA #7A5AFA #CA5AFA
triadic
#7A5AFA #FA7A5A #5AFA7A
tetradic
#7A5AFA #FA5A8A #DAFA5A #5AFACA
square
#7A5AFA #FA5A8A #DAFA5A #5AFACA
split-complementary
#7A5AFA #FACA5A #8AFA5A
monochromatic
#2F06D3 #4A1FF8 #7A5AFA #AA95FC #DAD1FE

Accessibility & contrast

On white

4.50
#7A5AFA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#7A5AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5AFA
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AFA#FFFFFF#000000##000000
##7A5AFA1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0072F7
Tritanopia (blue-blind)
#4881A2
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7a5afa;
/* rgb */ color: rgb(122, 90, 250);
/* oklch */ color: oklch(59.1% 0.227 286.4);
Tailwind
colors: {
  custom: {
    50: '#aa8afd',
    500: '#7a5afa',
    950: '#000000',
  },
}
SCSS
$custom: #7a5afa;
$custom-light: #aa8afd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5afa",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 250
  },
  "hsl": {
    "h": 252,
    "s": 94.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59056,
    "c": 0.2265,
    "h": 286.4
  },
  "luminance": 0.18352
}

Semantic roles & 50–950 ramp

primary
#7A5AFA
secondary
#E7F2BE
accent
#E600B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7A5AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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