#7A2AA2#7A2AA2

#7A2AA2 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.187 H 311.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7A2AA2
RGBrgb(122, 42, 162)
HSLhsl(280, 59%, 40%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(24.7%, 74.1%, 0%, 36.5%)
CIE-LABlab(34.81, 53.43, -49.39)
CIE-LCHlch(34.81, 72.76, 317.25°)
OKLaboklab(46.18% 0.1244 -0.1397)
OKLCHoklch(46.18% 0.187 311.7)
XYZxyz(15.3744, 8.4025, 34.9874)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AA2 #52A22A
analogous
#3E2AA2 #7A2AA2 #A22A8E
triadic
#7A2AA2 #A27A2A #2AA27A
tetradic
#7A2AA2 #A23E2A #52A22A #2A8EA2
square
#7A2AA2 #A23E2A #52A22A #2A8EA2
split-complementary
#7A2AA2 #8EA22A #2AA23E
monochromatic
#311141 #551D71 #7A2AA2 #9D3DCD #B56DD9

Accessibility & contrast

On white

7.83
#7A2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7A2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AA2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AA2#FFFFFF#000000##FFFFFF
##7A2AA21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#18539F
Tritanopia (blue-blind)
#754564
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2aa2;
/* rgb */ color: rgb(122, 42, 162);
/* oklch */ color: oklch(46.2% 0.187 311.7);
Tailwind
colors: {
  custom: {
    50: '#a56cbe',
    500: '#7a2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aa2;
$custom-light: #a56cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aa2",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 280,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46178,
    "c": 0.18703,
    "h": 311.7
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#7A2AA2
secondary
#85C068
accent
#E2467A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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