#7A5AF2#7A5AF2

#7A5AF2 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.217 H 287.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7A5AF2
RGBrgb(122, 90, 242)
HSLhsl(253, 85%, 65%)
HSVhsv(253, 63%, 95%)
CMYKcmyk(49.6%, 62.8%, 0%, 5.1%)
CIE-LABlab(49.33, 49.94, -72.23)
CIE-LCHlch(49.33, 87.81, 304.66°)
OKLaboklab(58.44% 0.0648 -0.207)
OKLCHoklch(58.44% 0.217 287.4)
XYZxyz(27.7045, 17.8594, 85.9746)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AF2 #D2F25A
analogous
#5A86F2 #7A5AF2 #C65AF2
triadic
#7A5AF2 #F27A5A #5AF27A
tetradic
#7A5AF2 #F25A86 #D2F25A #5AF2C6
square
#7A5AF2 #F25A86 #D2F25A #5AF2C6
split-complementary
#7A5AF2 #F2C65A #86F25A
monochromatic
#350FC2 #4C21EE #7A5AF2 #A893F6 #D5CBFB

Accessibility & contrast

On white

4.59
#7A5AF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7A5AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5AF2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AF2#FFFFFF#000000##FFFFFF
##7A5AF21.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F7
Deuteranopia (green-blind)
#0071EF
Tritanopia (blue-blind)
#4F7F9E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a5af2;
/* rgb */ color: rgb(122, 90, 242);
/* oklch */ color: oklch(58.4% 0.217 287.4);
Tailwind
colors: {
  custom: {
    50: '#a98af7',
    500: '#7a5af2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5af2;
$custom-light: #a98af7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5af2",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 252.632,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.5844,
    "c": 0.21689,
    "h": 287.4
  },
  "luminance": 0.17861
}

Semantic roles & 50–950 ramp

primary
#7A5AF2
secondary
#E3EEBA
accent
#E204B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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