#7A1242#7A1242

#7A1242 is a dark, vivid pink. Relative luminance 0.050; OKLCH L 38.6% C 0.142 H 359.2°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#7A1242
RGBrgb(122, 18, 66)
HSLhsl(332, 74%, 27%)
HSVhsv(332, 85%, 48%)
CMYKcmyk(0%, 85.2%, 45.9%, 52.2%)
CIE-LABlab(26.63, 46.02, -0.98)
CIE-LCHlch(26.63, 46.03, 358.78°)
OKLaboklab(38.62% 0.1416 -0.002)
OKLCHoklch(38.62% 0.142 359.2)
XYZxyz(9.2265, 4.9648, 5.6257)
Luminance0.0496 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1242 #127A4A
analogous
#7A1276 #7A1242 #7A1612
triadic
#7A1242 #427A12 #12427A
tetradic
#7A1242 #767A12 #127A4A #16127A
square
#7A1242 #767A12 #127A4A #16127A
split-complementary
#7A1242 #127A16 #12767A
monochromatic
#1B040E #450A25 #7A1242 #AF1A5F #DF277C

Accessibility & contrast

On white

10.54
#7A1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#7A1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1242
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1242#FFFFFF#000000##FFFFFF
##7A12421.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3243
Deuteranopia (green-blind)
#484640
Tritanopia (blue-blind)
#850028
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7a1242;
/* rgb */ color: rgb(122, 18, 66);
/* oklch */ color: oklch(38.6% 0.142 359.2);
Tailwind
colors: {
  custom: {
    50: '#a55e76',
    500: '#7a1242',
    950: '#000000',
  },
}
SCSS
$custom: #7a1242;
$custom-light: #a55e76;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1242",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 332.308,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.38617,
    "c": 0.14165,
    "h": 359.2
  },
  "luminance": 0.04964
}

Semantic roles & 50–950 ramp

primary
#7A1242
secondary
#38B079
accent
#F19B37
background
#FAF5F7
surface
#F4EAED
border
#CEC6C8
text
#100508
muted
#7F797B

Preview Lab

Preview with #7A1242

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

Preview Lab → · Contrast checker → · Palette generator →

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