#7A2252#7A2252

#7A2252 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.6% C 0.131 H 351.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#7A2252
RGBrgb(122, 34, 82)
HSLhsl(327, 56%, 31%)
HSVhsv(327, 72%, 48%)
CMYKcmyk(0%, 72.1%, 32.8%, 52.2%)
CIE-LABlab(29.14, 42.43, -7.94)
CIE-LCHlch(29.14, 43.17, 349.41°)
OKLaboklab(40.64% 0.1295 -0.0206)
OKLCHoklch(40.64% 0.131 351)
XYZxyz(10.1216, 5.8920, 8.5852)
Luminance0.0589 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2252 #227A4A
analogous
#76227A #7A2252 #7A2226
triadic
#7A2252 #527A22 #22527A
tetradic
#7A2252 #7A7622 #227A4A #22267A
square
#7A2252 #7A7622 #227A4A #22267A
split-complementary
#7A2252 #267A22 #227A76
monochromatic
#1A0712 #4A1532 #7A2252 #AA2F72 #CD4A91

Accessibility & contrast

On white

9.64
#7A2252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7A2252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2252
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2252#FFFFFF#000000##FFFFFF
##7A22521.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303B53
Deuteranopia (green-blind)
#494A50
Tritanopia (blue-blind)
#831D37
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a2252;
/* rgb */ color: rgb(122, 34, 82);
/* oklch */ color: oklch(40.6% 0.131 351.0);
Tailwind
colors: {
  custom: {
    50: '#a46582',
    500: '#7a2252',
    950: '#000000',
  },
}
SCSS
$custom: #7a2252;
$custom-light: #a46582;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2252",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 327.273,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40642,
    "c": 0.13114,
    "h": 351
  },
  "luminance": 0.05891
}

Semantic roles & 50–950 ramp

primary
#7A2252
secondary
#4BAD77
accent
#E08D48
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7A2252

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

Preview Lab → · Contrast checker → · Palette generator →

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