#7A4DCA#7A4DCA

#7A4DCA is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.185 H 296.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7A4DCA
RGBrgb(122, 77, 202)
HSLhsl(262, 54%, 55%)
HSVhsv(262, 62%, 79%)
CMYKcmyk(39.6%, 61.9%, 0%, 20.8%)
CIE-LABlab(43.81, 46.07, -58.43)
CIE-LCHlch(43.81, 74.41, 308.26°)
OKLaboklab(53.54% 0.0816 -0.1664)
OKLCHoklch(53.54% 0.185 296.1)
XYZxyz(21.3378, 13.7092, 57.3876)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4DCA #9DCA4D
analogous
#4D5FCA #7A4DCA #B94DCA
triadic
#7A4DCA #CA7A4D #4DCA7A
tetradic
#7A4DCA #CA4D5F #9DCA4D #4DCAB9
square
#7A4DCA #CA4D5F #9DCA4D #4DCAB9
split-complementary
#7A4DCA #CAB94D #5FCA4D
monochromatic
#422479 #5C32A8 #7A4DCA #9D7CD8 #C0ABE6

Accessibility & contrast

On white

5.61
#7A4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7A4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4DCA
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4DCA#FFFFFF#000000##FFFFFF
##7A4DCA1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0266C7
Tritanopia (blue-blind)
#666984
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7a4dca;
/* rgb */ color: rgb(122, 77, 202);
/* oklch */ color: oklch(53.5% 0.185 296.1);
Tailwind
colors: {
  custom: {
    50: '#a681db',
    500: '#7a4dca',
    950: '#000000',
  },
}
SCSS
$custom: #7a4dca;
$custom-light: #a681db;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4dca",
  "rgb": {
    "r": 122,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 261.6,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53538,
    "c": 0.18536,
    "h": 296.1
  },
  "luminance": 0.1371
}

Semantic roles & 50–950 ramp

primary
#7A4DCA
secondary
#C1D49F
accent
#DD4AA9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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