#7A2271#7A2271

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

Color values

HEX#7A2271
RGBrgb(122, 34, 113)
HSLhsl(306, 56%, 31%)
HSVhsv(306, 72%, 48%)
CMYKcmyk(0%, 72.1%, 7.4%, 52.2%)
CIE-LABlab(30.58, 47.09, -25.80)
CIE-LCHlch(30.58, 53.69, 331.28°)
OKLaboklab(42.16% 0.1353 -0.0708)
OKLCHoklch(42.16% 0.153 332.4)
XYZxyz(11.5787, 6.4748, 16.2595)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2271 #227A2B
analogous
#57227A #7A2271 #7A2245
triadic
#7A2271 #717A22 #22717A
tetradic
#7A2271 #7A5722 #227A2B #22457A
square
#7A2271 #7A5722 #227A2B #22457A
split-complementary
#7A2271 #457A22 #227A57
monochromatic
#1A0718 #4A1545 #7A2271 #AA2F9D #CD4ABF

Accessibility & contrast

On white

9.15
#7A2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2271
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2271#FFFFFF#000000##FFFFFF
##7A22711.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2271;
/* rgb */ color: rgb(122, 34, 113);
/* oklch */ color: oklch(42.2% 0.153 332.4);
Tailwind
colors: {
  custom: {
    50: '#a3669a',
    500: '#7a2271',
    950: '#000000',
  },
}
SCSS
$custom: #7a2271;
$custom-light: #a3669a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2271",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 306.136,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42162,
    "c": 0.15267,
    "h": 332.4
  },
  "luminance": 0.06474
}

Semantic roles & 50–950 ramp

primary
#7A2271
secondary
#4BAD55
accent
#E05848
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2271

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

Preview Lab → · Contrast checker → · Palette generator →

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