#7B2147#7B2147

#7B2147 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.3% C 0.128 H 358.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#7B2147
RGBrgb(123, 33, 71)
HSLhsl(335, 58%, 31%)
HSVhsv(335, 73%, 48%)
CMYKcmyk(0%, 73.2%, 42.3%, 51.8%)
CIE-LABlab(28.79, 41.82, -1.16)
CIE-LCHlch(28.79, 41.84, 358.41°)
OKLaboklab(40.29% 0.1282 -0.0025)
OKLCHoklch(40.29% 0.128 358.9)
XYZxyz(9.8503, 5.7548, 6.5521)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2147 #217B55
analogous
#7B2174 #7B2147 #7B2821
triadic
#7B2147 #477B21 #21477B
tetradic
#7B2147 #747B21 #217B55 #28217B
square
#7B2147 #747B21 #217B55 #28217B
split-complementary
#7B2147 #217B28 #21747B
monochromatic
#1A070F #4B142B #7B2147 #AB2E63 #CE4881

Accessibility & contrast

On white

9.76
#7B2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7B2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2147
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2147#FFFFFF#000000##FFFFFF
##7B21471.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333948
Deuteranopia (green-blind)
#4C4A45
Tritanopia (blue-blind)
#851631
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b2147;
/* rgb */ color: rgb(123, 33, 71);
/* oklch */ color: oklch(40.3% 0.128 358.9);
Tailwind
colors: {
  custom: {
    50: '#a5647a',
    500: '#7b2147',
    950: '#000000',
  },
}
SCSS
$custom: #7b2147;
$custom-light: #a5647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2147",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 334.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40287,
    "c": 0.12823,
    "h": 358.9
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#7B2147
secondary
#4AAE84
accent
#E1A047
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7B2147

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

Preview Lab → · Contrast checker → · Palette generator →

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