#7A1971#7A1971

#7A1971 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.163 H 332.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7A1971
RGBrgb(122, 25, 113)
HSLhsl(306, 66%, 29%)
HSVhsv(306, 80%, 48%)
CMYKcmyk(0%, 79.5%, 7.4%, 52.2%)
CIE-LABlab(29.48, 50.22, -27.53)
CIE-LCHlch(29.48, 57.28, 331.27°)
OKLaboklab(41.37% 0.1444 -0.0757)
OKLCHoklch(41.37% 0.163 332.3)
XYZxyz(11.3543, 6.0261, 16.1847)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1971 #197A22
analogous
#53197A #7A1971 #7A1941
triadic
#7A1971 #717A19 #19717A
tetradic
#7A1971 #7A5319 #197A22 #19417A
square
#7A1971 #7A5319 #197A22 #19417A
split-complementary
#7A1971 #417A19 #197A53
monochromatic
#190518 #470F42 #7A1971 #AD23A0 #D637C7

Accessibility & contrast

On white

9.52
#7A1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7A1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1971
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1971#FFFFFF#000000##FFFFFF
##7A19711.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#802544
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a1971;
/* rgb */ color: rgb(122, 25, 113);
/* oklch */ color: oklch(41.4% 0.163 332.3);
Tailwind
colors: {
  custom: {
    50: '#a4629a',
    500: '#7a1971',
    950: '#000000',
  },
}
SCSS
$custom: #7a1971;
$custom-light: #a4629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1971",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 305.567,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.16306,
    "h": 332.3
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#7A1971
secondary
#40AF4A
accent
#E94F3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1971

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

Preview Lab → · Contrast checker → · Palette generator →

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