#7A2AA3#7A2AA3

#7A2AA3 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.188 H 311.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7A2AA3
RGBrgb(122, 42, 163)
HSLhsl(280, 59%, 40%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(25.2%, 74.2%, 0%, 36.1%)
CIE-LABlab(34.88, 53.65, -49.88)
CIE-LCHlch(34.88, 73.25, 317.09°)
OKLaboklab(46.25% 0.1242 -0.1411)
OKLCHoklch(46.25% 0.188 311.4)
XYZxyz(15.4636, 8.4382, 35.4574)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AA3 #53A32A
analogous
#3D2AA3 #7A2AA3 #A32A90
triadic
#7A2AA3 #A37A2A #2AA37A
tetradic
#7A2AA3 #A33D2A #53A32A #2A90A3
square
#7A2AA3 #A33D2A #53A32A #2A90A3
split-complementary
#7A2AA3 #90A32A #2AA33D
monochromatic
#311142 #561D72 #7A2AA3 #9C3DCD #B56EDA

Accessibility & contrast

On white

7.81
#7A2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7A2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AA3
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AA3#FFFFFF#000000##FFFFFF
##7A2AA31.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1653A0
Tritanopia (blue-blind)
#754564
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2aa3;
/* rgb */ color: rgb(122, 42, 163);
/* oklch */ color: oklch(46.3% 0.188 311.4);
Tailwind
colors: {
  custom: {
    50: '#a56cbf',
    500: '#7a2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aa3;
$custom-light: #a56cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aa3",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 279.669,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46252,
    "c": 0.188,
    "h": 311.4
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#7A2AA3
secondary
#86C068
accent
#E2467B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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