#7C2148#7C2148

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

Color values

HEX#7C2148
RGBrgb(124, 33, 72)
HSLhsl(334, 58%, 31%)
HSVhsv(334, 73%, 49%)
CMYKcmyk(0%, 73.4%, 41.9%, 51.4%)
CIE-LABlab(29.01, 42.24, -1.47)
CIE-LCHlch(29.01, 42.27, 358.01°)
OKLaboklab(40.5% 0.1295 -0.0033)
OKLCHoklch(40.5% 0.13 358.5)
XYZxyz(10.0264, 5.8419, 6.7292)
Luminance0.0584 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2148 #217C55
analogous
#7C2175 #7C2148 #7C2721
triadic
#7C2148 #487C21 #21487C
tetradic
#7C2148 #757C21 #217C55 #27217C
square
#7C2148 #757C21 #217C55 #27217C
split-complementary
#7C2148 #217C27 #21757C
monochromatic
#1B0710 #4C142C #7C2148 #AC2E64 #CF4982

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2148#FFFFFF#000000##FFFFFF
##7C21481.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)
#333949
Deuteranopia (green-blind)
#4C4B46
Tritanopia (blue-blind)
#861631
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c2148;
/* rgb */ color: rgb(124, 33, 72);
/* oklch */ color: oklch(40.5% 0.130 358.5);
Tailwind
colors: {
  custom: {
    50: '#a6647a',
    500: '#7c2148',
    950: '#000000',
  },
}
SCSS
$custom: #7c2148;
$custom-light: #a6647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2148",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 334.286,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.405,
    "c": 0.12956,
    "h": 358.5
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#7C2148
secondary
#4AAF84
accent
#E19F47
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7C2148

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

Preview Lab → · Contrast checker → · Palette generator →

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