#7A2176#7A2176

#7A2176 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.158 H 329.9°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7A2176
RGBrgb(122, 33, 118)
HSLhsl(303, 57%, 30%)
HSVhsv(303, 73%, 48%)
CMYKcmyk(0%, 73%, 3.3%, 52.2%)
CIE-LABlab(30.72, 48.32, -28.75)
CIE-LCHlch(30.72, 56.23, 329.25°)
OKLaboklab(42.35% 0.1367 -0.0793)
OKLCHoklch(42.35% 0.158 329.9)
XYZxyz(11.8398, 6.5342, 17.7737)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2176 #217A25
analogous
#52217A #7A2176 #7A2149
triadic
#7A2176 #767A21 #21767A
tetradic
#7A2176 #7A5221 #217A25 #21497A
square
#7A2176 #7A5221 #217A25 #21497A
split-complementary
#7A2176 #497A21 #217A52
monochromatic
#1A0719 #4A1447 #7A2176 #AA2EA5 #CD48C7

Accessibility & contrast

On white

9.10
#7A2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7A2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2176
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2176#FFFFFF#000000##FFFFFF
##7A21761.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174178
Deuteranopia (green-blind)
#3B4D74
Tritanopia (blue-blind)
#7F2C49
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a2176;
/* rgb */ color: rgb(122, 33, 118);
/* oklch */ color: oklch(42.4% 0.158 329.9);
Tailwind
colors: {
  custom: {
    50: '#a3669e',
    500: '#7a2176',
    950: '#000000',
  },
}
SCSS
$custom: #7a2176;
$custom-light: #a3669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2176",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 302.697,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42354,
    "c": 0.158,
    "h": 329.9
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#7A2176
secondary
#4AAD4E
accent
#E14E47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A2176

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

Preview Lab → · Contrast checker → · Palette generator →

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