#7C2157#7C2157

#7C2157 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.1% C 0.137 H 348.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#7C2157
RGBrgb(124, 33, 87)
HSLhsl(324, 58%, 31%)
HSVhsv(324, 73%, 49%)
CMYKcmyk(0%, 73.4%, 29.8%, 51.4%)
CIE-LABlab(29.57, 44.08, -10.54)
CIE-LCHlch(29.57, 45.32, 346.56°)
OKLaboklab(41.09% 0.1341 -0.0277)
OKLCHoklch(41.09% 0.137 348.3)
XYZxyz(10.5768, 6.0621, 9.6281)
Luminance0.0606 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2157 #217C46
analogous
#73217C #7C2157 #7C2129
triadic
#7C2157 #577C21 #21577C
tetradic
#7C2157 #7C7321 #217C46 #21297C
square
#7C2157 #7C7321 #217C46 #21297C
split-complementary
#7C2157 #297C21 #217C73
monochromatic
#1B0713 #4C1435 #7C2157 #AC2E79 #CF4998

Accessibility & contrast

On white

9.49
#7C2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7C2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2157
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2157#FFFFFF#000000##FFFFFF
##7C21571.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3C59
Deuteranopia (green-blind)
#484B55
Tritanopia (blue-blind)
#851D39
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c2157;
/* rgb */ color: rgb(124, 33, 87);
/* oklch */ color: oklch(41.1% 0.137 348.3);
Tailwind
colors: {
  custom: {
    50: '#a56586',
    500: '#7c2157',
    950: '#000000',
  },
}
SCSS
$custom: #7c2157;
$custom-light: #a56586;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2157",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 324.396,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41093,
    "c": 0.13697,
    "h": 348.3
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

primary
#7C2157
secondary
#4AAF73
accent
#E18547
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7C2157

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

Preview Lab → · Contrast checker → · Palette generator →

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