#7A1D71#7A1D71

#7A1D71 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.159 H 332.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#7A1D71
RGBrgb(122, 29, 113)
HSLhsl(306, 62%, 30%)
HSVhsv(306, 76%, 48%)
CMYKcmyk(0%, 76.2%, 7.4%, 52.2%)
CIE-LABlab(29.93, 48.92, -26.81)
CIE-LCHlch(29.93, 55.78, 331.27°)
OKLaboklab(41.7% 0.1406 -0.0737)
OKLCHoklch(41.7% 0.159 332.3)
XYZxyz(11.4461, 6.2095, 16.2153)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D71 #1D7A26
analogous
#541D7A #7A1D71 #7A1D43
triadic
#7A1D71 #717A1D #1D717A
tetradic
#7A1D71 #7A541D #1D7A26 #1D437A
square
#7A1D71 #7A541D #1D7A26 #1D437A
split-complementary
#7A1D71 #437A1D #1D7A54
monochromatic
#190617 #491143 #7A1D71 #AB299F #D240C3

Accessibility & contrast

On white

9.37
#7A1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7A1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D71
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D71#FFFFFF#000000##FFFFFF
##7A1D711.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#7F2745
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a1d71;
/* rgb */ color: rgb(122, 29, 113);
/* oklch */ color: oklch(41.7% 0.159 332.3);
Tailwind
colors: {
  custom: {
    50: '#a4649a',
    500: '#7a1d71',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d71;
$custom-light: #a4649a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d71",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 305.806,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41697,
    "c": 0.15873,
    "h": 332.3
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#7A1D71
secondary
#45AE4F
accent
#E55343
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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