#7C2158#7C2158

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

Color values

HEX#7C2158
RGBrgb(124, 33, 88)
HSLhsl(324, 58%, 31%)
HSVhsv(324, 73%, 49%)
CMYKcmyk(0%, 73.4%, 29%, 51.4%)
CIE-LABlab(29.61, 44.21, -11.13)
CIE-LCHlch(29.61, 45.59, 345.87°)
OKLaboklab(41.14% 0.1344 -0.0293)
OKLCHoklch(41.14% 0.138 347.7)
XYZxyz(10.6180, 6.0785, 9.8447)
Luminance0.0608 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2158 #217C45
analogous
#72217C #7C2158 #7C212A
triadic
#7C2158 #587C21 #21587C
tetradic
#7C2158 #7C7221 #217C45 #212A7C
square
#7C2158 #7C7221 #217C45 #212A7C
split-complementary
#7C2158 #2A7C21 #217C72
monochromatic
#1B0713 #4C1436 #7C2158 #AC2E7A #CF499A

Accessibility & contrast

On white

9.48
#7C2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7C2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2158
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2158#FFFFFF#000000##FFFFFF
##7C21581.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3C5A
Deuteranopia (green-blind)
#484B56
Tritanopia (blue-blind)
#851E39
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c2158;
/* rgb */ color: rgb(124, 33, 88);
/* oklch */ color: oklch(41.1% 0.138 347.7);
Tailwind
colors: {
  custom: {
    50: '#a56587',
    500: '#7c2158',
    950: '#000000',
  },
}
SCSS
$custom: #7c2158;
$custom-light: #a56587;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2158",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 323.736,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41136,
    "c": 0.13756,
    "h": 347.7
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#7C2158
secondary
#4AAF72
accent
#E18447
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7C2158

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

Preview Lab → · Contrast checker → · Palette generator →

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