#7A2971#7A2971

#7A2971 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 42.9% C 0.143 H 332.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7A2971
RGBrgb(122, 41, 113)
HSLhsl(307, 50%, 32%)
HSVhsv(307, 66%, 48%)
CMYKcmyk(0%, 66.4%, 7.4%, 52.2%)
CIE-LABlab(31.62, 44.19, -24.17)
CIE-LCHlch(31.62, 50.36, 331.32°)
OKLaboklab(42.91% 0.1268 -0.0662)
OKLCHoklch(42.91% 0.143 332.4)
XYZxyz(11.7996, 6.9166, 16.3331)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2971 #297A32
analogous
#5B297A #7A2971 #7A2949
triadic
#7A2971 #717A29 #29717A
tetradic
#7A2971 #7A5B29 #297A32 #29497A
square
#7A2971 #7A5B29 #297A32 #29497A
split-complementary
#7A2971 #497A29 #297A5B
monochromatic
#1E0A1C #4C1A47 #7A2971 #A8389B #C757BA

Accessibility & contrast

On white

8.81
#7A2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7A2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2971
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2971#FFFFFF#000000##FFFFFF
##7A29711.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264373
Deuteranopia (green-blind)
#414F6F
Tritanopia (blue-blind)
#7F3049
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a2971;
/* rgb */ color: rgb(122, 41, 113);
/* oklch */ color: oklch(42.9% 0.143 332.4);
Tailwind
colors: {
  custom: {
    50: '#a3699a',
    500: '#7a2971',
    950: '#000000',
  },
}
SCSS
$custom: #7a2971;
$custom-light: #a3699a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2971",
  "rgb": {
    "r": 122,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 306.667,
    "s": 49.693,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42912,
    "c": 0.14306,
    "h": 332.4
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#7A2971
secondary
#53AC5D
accent
#D95E4F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7A2971

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

Preview Lab → · Contrast checker → · Palette generator →

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