#7A2172#7A2172

#7A2172 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.155 H 331.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7A2172
RGBrgb(122, 33, 114)
HSLhsl(305, 57%, 30%)
HSVhsv(305, 73%, 48%)
CMYKcmyk(0%, 73%, 6.6%, 52.2%)
CIE-LABlab(30.50, 47.64, -26.56)
CIE-LCHlch(30.50, 54.54, 330.86°)
OKLaboklab(42.12% 0.1364 -0.073)
OKLCHoklch(42.12% 0.155 331.9)
XYZxyz(11.6072, 6.4411, 16.5483)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2172 #217A29
analogous
#55217A #7A2172 #7A2146
triadic
#7A2172 #727A21 #21727A
tetradic
#7A2172 #7A5521 #217A29 #21467A
square
#7A2172 #7A5521 #217A29 #21467A
split-complementary
#7A2172 #467A21 #217A55
monochromatic
#1A0718 #4A1445 #7A2172 #AA2E9F #CD48C1

Accessibility & contrast

On white

9.18
#7A2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2172
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2172#FFFFFF#000000##FFFFFF
##7A21721.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4074
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#7F2B47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a2172;
/* rgb */ color: rgb(122, 33, 114);
/* oklch */ color: oklch(42.1% 0.155 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3659b',
    500: '#7a2172',
    950: '#000000',
  },
}
SCSS
$custom: #7a2172;
$custom-light: #a3659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2172",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 305.393,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42121,
    "c": 0.15474,
    "h": 331.9
  },
  "luminance": 0.0644
}

Semantic roles & 50–950 ramp

primary
#7A2172
secondary
#4AAD53
accent
#E15547
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2172

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

Preview Lab → · Contrast checker → · Palette generator →

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