#7A1972#7A1972

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

Color values

HEX#7A1972
RGBrgb(122, 25, 114)
HSLhsl(305, 66%, 29%)
HSVhsv(305, 80%, 48%)
CMYKcmyk(0%, 79.5%, 6.6%, 52.2%)
CIE-LABlab(29.54, 50.39, -28.08)
CIE-LCHlch(29.54, 57.69, 330.87°)
OKLaboklab(41.43% 0.1444 -0.0773)
OKLCHoklch(41.43% 0.164 331.8)
XYZxyz(11.4110, 6.0487, 16.4829)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1972 #197A21
analogous
#52197A #7A1972 #7A1942
triadic
#7A1972 #727A19 #19727A
tetradic
#7A1972 #7A5219 #197A21 #19427A
square
#7A1972 #7A5219 #197A21 #19427A
split-complementary
#7A1972 #427A19 #197A52
monochromatic
#190518 #470F43 #7A1972 #AD23A1 #D637C9

Accessibility & contrast

On white

9.50
#7A1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A1972
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1972#FFFFFF#000000##FFFFFF
##7A19721.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D74
Deuteranopia (green-blind)
#394A70
Tritanopia (blue-blind)
#7F2545
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a1972;
/* rgb */ color: rgb(122, 25, 114);
/* oklch */ color: oklch(41.4% 0.164 331.8);
Tailwind
colors: {
  custom: {
    50: '#a4629b',
    500: '#7a1972',
    950: '#000000',
  },
}
SCSS
$custom: #7a1972;
$custom-light: #a4629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1972",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 304.948,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41429,
    "c": 0.16382,
    "h": 331.8
  },
  "luminance": 0.06048
}

Semantic roles & 50–950 ramp

primary
#7A1972
secondary
#40AF49
accent
#E94D3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1972

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

Preview Lab → · Contrast checker → · Palette generator →

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