#7D2157#7D2157

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

Color values

HEX#7D2157
RGBrgb(125, 33, 87)
HSLhsl(325, 58%, 31%)
HSVhsv(325, 74%, 49%)
CMYKcmyk(0%, 73.6%, 30.4%, 51%)
CIE-LABlab(29.76, 44.37, -10.23)
CIE-LCHlch(29.76, 45.54, 347.01°)
OKLaboklab(41.27% 0.1351 -0.0268)
OKLCHoklch(41.27% 0.138 348.8)
XYZxyz(10.7221, 6.1370, 9.6349)
Luminance0.0614 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2157 #217D47
analogous
#75217D #7D2157 #7D2129
triadic
#7D2157 #577D21 #21577D
tetradic
#7D2157 #7D7521 #217D47 #21297D
square
#7D2157 #7D7521 #217D47 #21297D
split-complementary
#7D2157 #297D21 #217D75
monochromatic
#1C0714 #4D1435 #7D2157 #AD2E79 #CF4998

Accessibility & contrast

On white

9.43
#7D2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2157
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2157#FFFFFF#000000##FFFFFF
##7D21571.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2157;
/* rgb */ color: rgb(125, 33, 87);
/* oklch */ color: oklch(41.3% 0.138 348.8);
Tailwind
colors: {
  custom: {
    50: '#a66586',
    500: '#7d2157',
    950: '#000000',
  },
}
SCSS
$custom: #7d2157;
$custom-light: #a66586;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2157",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 324.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.41265,
    "c": 0.13777,
    "h": 348.8
  },
  "luminance": 0.06136
}

Semantic roles & 50–950 ramp

primary
#7D2157
secondary
#4AB074
accent
#E18646
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7D2157

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

Preview Lab → · Contrast checker → · Palette generator →

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