#7A2147#7A2147

#7A2147 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.1% C 0.127 H 358.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#7A2147
RGBrgb(122, 33, 71)
HSLhsl(334, 57%, 30%)
HSVhsv(334, 73%, 48%)
CMYKcmyk(0%, 73%, 41.8%, 52.2%)
CIE-LABlab(28.59, 41.51, -1.46)
CIE-LCHlch(28.59, 41.53, 357.98°)
OKLaboklab(40.11% 0.1272 -0.0033)
OKLCHoklch(40.11% 0.127 358.5)
XYZxyz(9.7079, 5.6814, 6.5454)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2147 #217A54
analogous
#7A2173 #7A2147 #7A2721
triadic
#7A2147 #477A21 #21477A
tetradic
#7A2147 #737A21 #217A54 #27217A
square
#7A2147 #737A21 #217A54 #27217A
split-complementary
#7A2147 #217A27 #21737A
monochromatic
#1A070F #4A142B #7A2147 #AA2E63 #CD4881

Accessibility & contrast

On white

9.83
#7A2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7A2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2147
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2147#FFFFFF#000000##FFFFFF
##7A21471.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333948
Deuteranopia (green-blind)
#4B4A45
Tritanopia (blue-blind)
#841631
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a2147;
/* rgb */ color: rgb(122, 33, 71);
/* oklch */ color: oklch(40.1% 0.127 358.5);
Tailwind
colors: {
  custom: {
    50: '#a5647a',
    500: '#7a2147',
    950: '#000000',
  },
}
SCSS
$custom: #7a2147;
$custom-light: #a5647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2147",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 334.382,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.12728,
    "h": 358.5
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#7A2147
secondary
#4AAD83
accent
#E19F47
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7A2147

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

Preview Lab → · Contrast checker → · Palette generator →

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