#7A2152#7A2152

#7A2152 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.5% C 0.132 H 350.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7A2152
RGBrgb(122, 33, 82)
HSLhsl(327, 57%, 30%)
HSVhsv(327, 73%, 48%)
CMYKcmyk(0%, 73%, 32.8%, 52.2%)
CIE-LABlab(28.99, 42.84, -8.16)
CIE-LCHlch(28.99, 43.61, 349.22°)
OKLaboklab(40.54% 0.1308 -0.0212)
OKLCHoklch(40.54% 0.132 350.8)
XYZxyz(10.0934, 5.8356, 8.5759)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2152 #217A49
analogous
#75217A #7A2152 #7A2126
triadic
#7A2152 #527A21 #21527A
tetradic
#7A2152 #7A7521 #217A49 #21267A
square
#7A2152 #7A7521 #217A49 #21267A
split-complementary
#7A2152 #267A21 #217A75
monochromatic
#1A0711 #4A1432 #7A2152 #AA2E72 #CD4891

Accessibility & contrast

On white

9.69
#7A2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7A2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2152
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2152#FFFFFF#000000##FFFFFF
##7A21521.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3A53
Deuteranopia (green-blind)
#484A50
Tritanopia (blue-blind)
#831C36
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a2152;
/* rgb */ color: rgb(122, 33, 82);
/* oklch */ color: oklch(40.5% 0.132 350.8);
Tailwind
colors: {
  custom: {
    50: '#a46482',
    500: '#7a2152',
    950: '#000000',
  },
}
SCSS
$custom: #7a2152;
$custom-light: #a46482;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2152",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 326.966,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40536,
    "c": 0.13247,
    "h": 350.8
  },
  "luminance": 0.05834
}

Semantic roles & 50–950 ramp

primary
#7A2152
secondary
#4AAD76
accent
#E18C47
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7A2152

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

Preview Lab → · Contrast checker → · Palette generator →

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