#7A4DEC#7A4DEC

#7A4DEC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.1% C 0.225 H 290.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7A4DEC
RGBrgb(122, 77, 236)
HSLhsl(257, 81%, 61%)
HSVhsv(257, 67%, 93%)
CMYKcmyk(48.3%, 67.4%, 0%, 7.5%)
CIE-LABlab(46.31, 55.22, -73.76)
CIE-LCHlch(46.31, 92.14, 306.82°)
OKLaboklab(56.13% 0.0778 -0.2115)
OKLCHoklch(56.13% 0.225 290.2)
XYZxyz(25.8159, 15.5004, 80.9723)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4DEC #BFEC4D
analogous
#4D70EC #7A4DEC #CA4DEC
triadic
#7A4DEC #EC7A4D #4DEC7A
tetradic
#7A4DEC #EC4D70 #BFEC4D #4DECCA
square
#7A4DEC #EC4D70 #BFEC4D #4DECCA
split-complementary
#7A4DEC #ECCA4D #70EC4D
monochromatic
#3E12AC #5218E4 #7A4DEC #A384F2 #CDBCF8

Accessibility & contrast

On white

5.12
#7A4DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7A4DEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4DEC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4DEC#FFFFFF#000000##FFFFFF
##7A4DEC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#547596
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7a4dec;
/* rgb */ color: rgb(122, 77, 236);
/* oklch */ color: oklch(56.1% 0.225 290.2);
Tailwind
colors: {
  custom: {
    50: '#a982f3',
    500: '#7a4dec',
    950: '#000000',
  },
}
SCSS
$custom: #7a4dec;
$custom-light: #a982f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4dec",
  "rgb": {
    "r": 122,
    "g": 77,
    "b": 236
  },
  "hsl": {
    "h": 256.981,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56125,
    "c": 0.22538,
    "h": 290.2
  },
  "luminance": 0.15501
}

Semantic roles & 50–950 ramp

primary
#7A4DEC
secondary
#D7E8AD
accent
#DD08A1
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A4DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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