#7A2A71#7A2A71

#7A2A71 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.0% C 0.142 H 332.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7A2A71
RGBrgb(122, 42, 113)
HSLhsl(307, 49%, 32%)
HSVhsv(307, 66%, 48%)
CMYKcmyk(0%, 65.6%, 7.4%, 52.2%)
CIE-LABlab(31.78, 43.74, -23.92)
CIE-LCHlch(31.78, 49.85, 331.33°)
OKLaboklab(43.03% 0.1255 -0.0655)
OKLCHoklch(43.03% 0.142 332.5)
XYZxyz(11.8347, 6.9867, 16.3448)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A71 #2A7A33
analogous
#5B2A7A #7A2A71 #7A2A49
triadic
#7A2A71 #717A2A #2A717A
tetradic
#7A2A71 #7A5B2A #2A7A33 #2A497A
square
#7A2A71 #7A5B2A #2A7A33 #2A497A
split-complementary
#7A2A71 #497A2A #2A7A5B
monochromatic
#1F0B1D #4C1A47 #7A2A71 #A83A9B #C659B9

Accessibility & contrast

On white

8.76
#7A2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7A2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A71
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A71#FFFFFF#000000##FFFFFF
##7A2A711.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274373
Deuteranopia (green-blind)
#424F6F
Tritanopia (blue-blind)
#7F3149
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a2a71;
/* rgb */ color: rgb(122, 42, 113);
/* oklch */ color: oklch(43.0% 0.142 332.5);
Tailwind
colors: {
  custom: {
    50: '#a36a9a',
    500: '#7a2a71',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a71;
$custom-light: #a36a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a71",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 306.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43029,
    "c": 0.14159,
    "h": 332.5
  },
  "luminance": 0.06986
}

Semantic roles & 50–950 ramp

primary
#7A2A71
secondary
#55AB5E
accent
#D85F4F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7A2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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