#7C2147#7C2147

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

Color values

HEX#7C2147
RGBrgb(124, 33, 71)
HSLhsl(335, 58%, 31%)
HSVhsv(335, 73%, 49%)
CMYKcmyk(0%, 73.4%, 42.7%, 51.4%)
CIE-LABlab(28.98, 42.13, -0.85)
CIE-LCHlch(28.98, 42.14, 358.84°)
OKLaboklab(40.46% 0.1292 -0.0017)
OKLCHoklch(40.46% 0.129 359.2)
XYZxyz(9.9941, 5.8290, 6.5588)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2147 #217C56
analogous
#7C2174 #7C2147 #7C2821
triadic
#7C2147 #477C21 #21477C
tetradic
#7C2147 #747C21 #217C56 #28217C
square
#7C2147 #747C21 #217C56 #28217C
split-complementary
#7C2147 #217C28 #21747C
monochromatic
#1B0710 #4C142B #7C2147 #AC2E63 #CF4981

Accessibility & contrast

On white

9.70
#7C2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2147
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2147#FFFFFF#000000##FFFFFF
##7C21471.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343948
Deuteranopia (green-blind)
#4C4B45
Tritanopia (blue-blind)
#871531
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c2147;
/* rgb */ color: rgb(124, 33, 71);
/* oklch */ color: oklch(40.5% 0.129 359.2);
Tailwind
colors: {
  custom: {
    50: '#a6647a',
    500: '#7c2147',
    950: '#000000',
  },
}
SCSS
$custom: #7c2147;
$custom-light: #a6647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2147",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 334.945,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40464,
    "c": 0.12918,
    "h": 359.2
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

primary
#7C2147
secondary
#4AAF85
accent
#E1A147
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7C2147

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

Preview Lab → · Contrast checker → · Palette generator →

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