#7A2272#7A2272

#7A2272 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.153 H 331.9°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7A2272
RGBrgb(122, 34, 114)
HSLhsl(305, 56%, 31%)
HSVhsv(305, 72%, 48%)
CMYKcmyk(0%, 72.1%, 6.6%, 52.2%)
CIE-LABlab(30.63, 47.26, -26.35)
CIE-LCHlch(30.63, 54.10, 330.86°)
OKLaboklab(42.22% 0.1353 -0.0724)
OKLCHoklch(42.22% 0.153 331.9)
XYZxyz(11.6353, 6.4975, 16.5576)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2272 #227A2A
analogous
#56227A #7A2272 #7A2246
triadic
#7A2272 #727A22 #22727A
tetradic
#7A2272 #7A5622 #227A2A #22467A
square
#7A2272 #7A5622 #227A2A #22467A
split-complementary
#7A2272 #467A22 #227A56
monochromatic
#1A0719 #4A1545 #7A2272 #AA2F9F #CD4AC1

Accessibility & contrast

On white

9.13
#7A2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7A2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2272
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2272#FFFFFF#000000##FFFFFF
##7A22721.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2272;
/* rgb */ color: rgb(122, 34, 114);
/* oklch */ color: oklch(42.2% 0.153 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3669b',
    500: '#7a2272',
    950: '#000000',
  },
}
SCSS
$custom: #7a2272;
$custom-light: #a3669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2272",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 305.455,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42218,
    "c": 0.15347,
    "h": 331.9
  },
  "luminance": 0.06497
}

Semantic roles & 50–950 ramp

primary
#7A2272
secondary
#4BAD54
accent
#E05648
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2272

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

Preview Lab → · Contrast checker → · Palette generator →

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