#7A5EF5#7A5EF5

#7A5EF5 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.3% C 0.216 H 286.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7A5EF5
RGBrgb(122, 94, 245)
HSLhsl(251, 88%, 66%)
HSVhsv(251, 62%, 96%)
CMYKcmyk(50.2%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.37, 48.58, -72.20)
CIE-LCHlch(50.37, 87.02, 303.94°)
OKLaboklab(59.27% 0.0606 -0.2069)
OKLCHoklch(59.27% 0.216 286.3)
XYZxyz(28.5053, 18.7342, 88.4826)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5EF5 #D9F55E
analogous
#5E8EF5 #7A5EF5 #C65EF5
triadic
#7A5EF5 #F57A5E #5EF57A
tetradic
#7A5EF5 #F55E8E #D9F55E #5EF5C6
square
#7A5EF5 #F55E8E #D9F55E #5EF5C6
split-complementary
#7A5EF5 #F5C65E #8EF55E
monochromatic
#300DCC #4A24F1 #7A5EF5 #AA98F9 #D9D1FC

Accessibility & contrast

On white

4.42
#7A5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7A5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5EF5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5EF5#FFFFFF#000000##000000
##7A5EF51.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#4C82A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7a5ef5;
/* rgb */ color: rgb(122, 94, 245);
/* oklch */ color: oklch(59.3% 0.216 286.3);
Tailwind
colors: {
  custom: {
    50: '#aa8df9',
    500: '#7a5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ef5;
$custom-light: #aa8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ef5",
  "rgb": {
    "r": 122,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 251.126,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59272,
    "c": 0.21559,
    "h": 286.3
  },
  "luminance": 0.18736
}

Semantic roles & 50–950 ramp

primary
#7A5EF5
secondary
#E7F0BF
accent
#E501BB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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