#7D2158#7D2158

#7D2158 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.3% C 0.138 H 348.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7D2158
RGBrgb(125, 33, 88)
HSLhsl(324, 58%, 31%)
HSVhsv(324, 74%, 49%)
CMYKcmyk(0%, 73.6%, 29.6%, 51%)
CIE-LABlab(29.80, 44.50, -10.83)
CIE-LCHlch(29.80, 45.80, 346.33°)
OKLaboklab(41.31% 0.1354 -0.0285)
OKLCHoklch(41.31% 0.138 348.1)
XYZxyz(10.7633, 6.1534, 9.8515)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2158 #217D46
analogous
#74217D #7D2158 #7D212A
triadic
#7D2158 #587D21 #21587D
tetradic
#7D2158 #7D7421 #217D46 #212A7D
square
#7D2158 #7D7421 #217D46 #212A7D
split-complementary
#7D2158 #2A7D21 #217D74
monochromatic
#1C0714 #4D1436 #7D2158 #AD2E7A #CF4999

Accessibility & contrast

On white

9.42
#7D2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7D2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2158
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2158#FFFFFF#000000##FFFFFF
##7D21581.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3C5A
Deuteranopia (green-blind)
#494C56
Tritanopia (blue-blind)
#861D39
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d2158;
/* rgb */ color: rgb(125, 33, 88);
/* oklch */ color: oklch(41.3% 0.138 348.1);
Tailwind
colors: {
  custom: {
    50: '#a66587',
    500: '#7d2158',
    950: '#000000',
  },
}
SCSS
$custom: #7d2158;
$custom-light: #a66587;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2158",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 324.13,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.41308,
    "c": 0.13836,
    "h": 348.1
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#7D2158
secondary
#4AB073
accent
#E18546
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7D2158

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

Preview Lab → · Contrast checker → · Palette generator →

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