#7A2A97#7A2A97

#7A2A97 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.176 H 315.5°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7A2A97
RGBrgb(122, 42, 151)
HSLhsl(284, 56%, 38%)
HSVhsv(284, 72%, 59%)
CMYKcmyk(19.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(34.04, 51.09, -43.95)
CIE-LCHlch(34.04, 67.39, 319.30°)
OKLaboklab(45.39% 0.1258 -0.1237)
OKLCHoklch(45.39% 0.176 315.5)
XYZxyz(14.4390, 8.0284, 30.0612)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A97 #47972A
analogous
#442A97 #7A2A97 #972A7D
triadic
#7A2A97 #977A2A #2A977A
tetradic
#7A2A97 #97442A #47972A #2A7D97
square
#7A2A97 #97442A #47972A #2A7D97
split-complementary
#7A2A97 #7D972A #2A9744
monochromatic
#2D0F37 #531D67 #7A2A97 #A137C7 #B767D5

Accessibility & contrast

On white

8.06
#7A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7A2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A97
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A97#FFFFFF#000000##FFFFFF
##7A2A971.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#285295
Tritanopia (blue-blind)
#78405E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2a97;
/* rgb */ color: rgb(122, 42, 151);
/* oklch */ color: oklch(45.4% 0.176 315.5);
Tailwind
colors: {
  custom: {
    50: '#a46bb6',
    500: '#7a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a97;
$custom-light: #a46bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a97",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 284.037,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45391,
    "c": 0.17643,
    "h": 315.5
  },
  "luminance": 0.08028
}

Semantic roles & 50–950 ramp

primary
#7A2A97
secondary
#7ABB62
accent
#E04870
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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