#7A4AF8#7A4AF8

#7A4AF8 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.7% C 0.242 H 288.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7A4AF8
RGBrgb(122, 74, 248)
HSLhsl(257, 93%, 63%)
HSVhsv(257, 70%, 97%)
CMYKcmyk(50.8%, 70.2%, 0%, 2.7%)
CIE-LABlab(46.73, 59.98, -79.82)
CIE-LCHlch(46.73, 99.85, 306.92°)
OKLaboklab(56.72% 0.0784 -0.2293)
OKLCHoklch(56.72% 0.242 288.9)
XYZxyz(27.4132, 15.8112, 90.3962)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4AF8 #C8F84A
analogous
#4A71F8 #7A4AF8 #D14AF8
triadic
#7A4AF8 #F87A4A #4AF87A
tetradic
#7A4AF8 #F84A71 #C8F84A #4AF8D1
square
#7A4AF8 #F84A71 #C8F84A #4AF8D1
split-complementary
#7A4AF8 #F8D14A #71F84A
monochromatic
#3A07C0 #4F0FF6 #7A4AF8 #A585FA #D1C0FD

Accessibility & contrast

On white

5.05
#7A4AF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7A4AF8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4AF8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4AF8#FFFFFF#000000##FFFFFF
##7A4AF81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072FD
Deuteranopia (green-blind)
#006AF5
Tritanopia (blue-blind)
#4B789C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a4af8;
/* rgb */ color: rgb(122, 74, 248);
/* oklch */ color: oklch(56.7% 0.242 288.9);
Tailwind
colors: {
  custom: {
    50: '#ab80fc',
    500: '#7a4af8',
    950: '#000000',
  },
}
SCSS
$custom: #7a4af8;
$custom-light: #ab80fc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4af8",
  "rgb": {
    "r": 122,
    "g": 74,
    "b": 248
  },
  "hsl": {
    "h": 256.552,
    "s": 92.553,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56717,
    "c": 0.2423,
    "h": 288.9
  },
  "luminance": 0.15812
}

Semantic roles & 50–950 ramp

primary
#7A4AF8
secondary
#DDEEB0
accent
#E600A6
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110A18
muted
#807C86

Preview Lab

Preview with #7A4AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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