#7A2162#7A2162

#7A2162 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.3% C 0.143 H 340.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#7A2162
RGBrgb(122, 33, 98)
HSLhsl(316, 57%, 30%)
HSVhsv(316, 73%, 48%)
CMYKcmyk(0%, 73%, 19.7%, 52.2%)
CIE-LABlab(29.68, 45.07, -17.56)
CIE-LCHlch(29.68, 48.37, 338.72°)
OKLaboklab(41.27% 0.1345 -0.0473)
OKLCHoklch(41.27% 0.143 340.6)
XYZxyz(10.7748, 6.1082, 12.1644)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2162 #217A39
analogous
#65217A #7A2162 #7A2135
triadic
#7A2162 #627A21 #21627A
tetradic
#7A2162 #7A6521 #217A39 #21357A
square
#7A2162 #7A6521 #217A39 #21357A
split-complementary
#7A2162 #357A21 #217A65
monochromatic
#1A0715 #4A143B #7A2162 #AA2E89 #CD48A9

Accessibility & contrast

On white

9.45
#7A2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7A2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2162
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2162#FFFFFF#000000##FFFFFF
##7A21621.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273D64
Deuteranopia (green-blind)
#434B60
Tritanopia (blue-blind)
#81233E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a2162;
/* rgb */ color: rgb(122, 33, 98);
/* oklch */ color: oklch(41.3% 0.143 340.6);
Tailwind
colors: {
  custom: {
    50: '#a4658f',
    500: '#7a2162',
    950: '#000000',
  },
}
SCSS
$custom: #7a2162;
$custom-light: #a4658f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2162",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 316.18,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41265,
    "c": 0.14257,
    "h": 340.6
  },
  "luminance": 0.06107
}

Semantic roles & 50–950 ramp

primary
#7A2162
secondary
#4AAD65
accent
#E17147
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7A2162

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

Preview Lab → · Contrast checker → · Palette generator →

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