#7A2276#7A2276

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

Color values

HEX#7A2276
RGBrgb(122, 34, 118)
HSLhsl(303, 56%, 31%)
HSVhsv(303, 72%, 48%)
CMYKcmyk(0%, 72.1%, 3.3%, 52.2%)
CIE-LABlab(30.86, 47.94, -28.54)
CIE-LCHlch(30.86, 55.79, 329.24°)
OKLaboklab(42.45% 0.1356 -0.0787)
OKLCHoklch(42.45% 0.157 329.9)
XYZxyz(11.8680, 6.5905, 17.7830)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2276 #227A26
analogous
#52227A #7A2276 #7A224A
triadic
#7A2276 #767A22 #22767A
tetradic
#7A2276 #7A5222 #227A26 #224A7A
square
#7A2276 #7A5222 #227A26 #224A7A
split-complementary
#7A2276 #4A7A22 #227A52
monochromatic
#1A0719 #4A1548 #7A2276 #AA2FA4 #CD4AC7

Accessibility & contrast

On white

9.06
#7A2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7A2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2276
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2276#FFFFFF#000000##FFFFFF
##7A22761.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184178
Deuteranopia (green-blind)
#3B4D74
Tritanopia (blue-blind)
#7F2D49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a2276;
/* rgb */ color: rgb(122, 34, 118);
/* oklch */ color: oklch(42.4% 0.157 329.9);
Tailwind
colors: {
  custom: {
    50: '#a3669e',
    500: '#7a2276',
    950: '#000000',
  },
}
SCSS
$custom: #7a2276;
$custom-light: #a3669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2276",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 302.727,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.15676,
    "h": 329.9
  },
  "luminance": 0.0659
}

Semantic roles & 50–950 ramp

primary
#7A2276
secondary
#4BAD4F
accent
#E04F48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2276

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

Preview Lab → · Contrast checker → · Palette generator →

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