#7C2152#7C2152

#7C2152 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.9% C 0.134 H 351.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#7C2152
RGBrgb(124, 33, 82)
HSLhsl(328, 58%, 31%)
HSVhsv(328, 73%, 49%)
CMYKcmyk(0%, 73.4%, 33.9%, 51.4%)
CIE-LABlab(29.37, 43.43, -7.55)
CIE-LCHlch(29.37, 44.08, 350.14°)
OKLaboklab(40.88% 0.1328 -0.0195)
OKLCHoklch(40.88% 0.134 351.6)
XYZxyz(10.3796, 5.9832, 8.5893)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2152 #217C4B
analogous
#78217C #7C2152 #7C2124
triadic
#7C2152 #527C21 #21527C
tetradic
#7C2152 #7C7821 #217C4B #21247C
square
#7C2152 #7C7821 #217C4B #21247C
split-complementary
#7C2152 #247C21 #217C78
monochromatic
#1B0712 #4C1432 #7C2152 #AC2E72 #CF4991

Accessibility & contrast

On white

9.56
#7C2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7C2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2152
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2152#FFFFFF#000000##FFFFFF
##7C21521.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303B53
Deuteranopia (green-blind)
#4A4B50
Tritanopia (blue-blind)
#861B36
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c2152;
/* rgb */ color: rgb(124, 33, 82);
/* oklch */ color: oklch(40.9% 0.134 351.6);
Tailwind
colors: {
  custom: {
    50: '#a66482',
    500: '#7c2152',
    950: '#000000',
  },
}
SCSS
$custom: #7c2152;
$custom-light: #a66482;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2152",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 327.692,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40882,
    "c": 0.13418,
    "h": 351.6
  },
  "luminance": 0.05982
}

Semantic roles & 50–950 ramp

primary
#7C2152
secondary
#4AAF79
accent
#E18E47
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7C2152

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

Preview Lab → · Contrast checker → · Palette generator →

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