#7D2162#7D2162

#7D2162 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.8% C 0.145 H 342.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7D2162
RGBrgb(125, 33, 98)
HSLhsl(318, 58%, 31%)
HSVhsv(318, 74%, 49%)
CMYKcmyk(0%, 73.6%, 21.6%, 51%)
CIE-LABlab(30.23, 45.90, -16.67)
CIE-LCHlch(30.23, 48.83, 340.04°)
OKLaboklab(41.77% 0.1376 -0.0447)
OKLCHoklch(41.77% 0.145 342)
XYZxyz(11.2063, 6.3306, 12.1847)
Luminance0.0633 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2162 #217D3C
analogous
#6A217D #7D2162 #7D2134
triadic
#7D2162 #627D21 #21627D
tetradic
#7D2162 #7D6A21 #217D3C #21347D
square
#7D2162 #7D6A21 #217D3C #21347D
split-complementary
#7D2162 #347D21 #217D6A
monochromatic
#1C0716 #4D143C #7D2162 #AD2E88 #CF49A8

Accessibility & contrast

On white

9.27
#7D2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7D2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2162
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2162#FFFFFF#000000##FFFFFF
##7D21621.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293E64
Deuteranopia (green-blind)
#464D60
Tritanopia (blue-blind)
#85223E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d2162;
/* rgb */ color: rgb(125, 33, 98);
/* oklch */ color: oklch(41.8% 0.145 342.0);
Tailwind
colors: {
  custom: {
    50: '#a6658e',
    500: '#7d2162',
    950: '#000000',
  },
}
SCSS
$custom: #7d2162;
$custom-light: #a6658e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2162",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 317.609,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.14472,
    "h": 342
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#7D2162
secondary
#4AB068
accent
#E17446
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7D2162

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

Preview Lab → · Contrast checker → · Palette generator →

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