#7A2157#7A2157

#7A2157 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.8% C 0.135 H 347.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#7A2157
RGBrgb(122, 33, 87)
HSLhsl(324, 57%, 30%)
HSVhsv(324, 73%, 48%)
CMYKcmyk(0%, 73%, 28.7%, 52.2%)
CIE-LABlab(29.20, 43.50, -11.14)
CIE-LCHlch(29.20, 44.90, 345.64°)
OKLaboklab(40.75% 0.1321 -0.0293)
OKLCHoklch(40.75% 0.135 347.5)
XYZxyz(10.2907, 5.9145, 9.6147)
Luminance0.0591 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2157 #217A44
analogous
#70217A #7A2157 #7A212A
triadic
#7A2157 #577A21 #21577A
tetradic
#7A2157 #7A7021 #217A44 #212A7A
square
#7A2157 #7A7021 #217A44 #212A7A
split-complementary
#7A2157 #2A7A21 #217A70
monochromatic
#1A0712 #4A1435 #7A2157 #AA2E79 #CD4899

Accessibility & contrast

On white

9.62
#7A2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7A2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2157
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2157#FFFFFF#000000##FFFFFF
##7A21571.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3B59
Deuteranopia (green-blind)
#474A55
Tritanopia (blue-blind)
#831E39
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a2157;
/* rgb */ color: rgb(122, 33, 87);
/* oklch */ color: oklch(40.8% 0.135 347.5);
Tailwind
colors: {
  custom: {
    50: '#a46486',
    500: '#7a2157',
    950: '#000000',
  },
}
SCSS
$custom: #7a2157;
$custom-light: #a46486;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2157",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 323.596,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.4075,
    "c": 0.13535,
    "h": 347.5
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A2157

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

Preview Lab → · Contrast checker → · Palette generator →

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