#7A2240#7A2240

#7A2240 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.0% C 0.124 H 3.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#7A2240
RGBrgb(122, 34, 64)
HSLhsl(340, 56%, 31%)
HSVhsv(340, 72%, 48%)
CMYKcmyk(0%, 72.1%, 47.5%, 52.2%)
CIE-LABlab(28.52, 40.34, 3.10)
CIE-LCHlch(28.52, 40.46, 4.39°)
OKLaboklab(39.98% 0.1233 0.0084)
OKLCHoklch(39.98% 0.124 3.9)
XYZxyz(9.5242, 5.6530, 5.4391)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2240 #227A5C
analogous
#7A226C #7A2240 #7A3022
triadic
#7A2240 #407A22 #22407A
tetradic
#7A2240 #6C7A22 #227A5C #30227A
square
#7A2240 #6C7A22 #227A5C #30227A
split-complementary
#7A2240 #227A30 #226C7A
monochromatic
#1A070E #4A1527 #7A2240 #AA2F59 #CD4A76

Accessibility & contrast

On white

9.86
#7A2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7A2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2240
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2240#FFFFFF#000000##FFFFFF
##7A22401.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353841
Deuteranopia (green-blind)
#4D4A3E
Tritanopia (blue-blind)
#85142E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a2240;
/* rgb */ color: rgb(122, 34, 64);
/* oklch */ color: oklch(40.0% 0.124 3.9);
Tailwind
colors: {
  custom: {
    50: '#a56474',
    500: '#7a2240',
    950: '#000000',
  },
}
SCSS
$custom: #7a2240;
$custom-light: #a56474;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2240",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 339.545,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39983,
    "c": 0.12362,
    "h": 3.9
  },
  "luminance": 0.05652
}

Semantic roles & 50–950 ramp

primary
#7A2240
secondary
#4BAD8B
accent
#E0AC48
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7A2240

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

Preview Lab → · Contrast checker → · Palette generator →

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