#7E2146#7E2146

#7E2146 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.8% C 0.131 H 0.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#7E2146
RGBrgb(126, 33, 70)
HSLhsl(336, 58%, 31%)
HSVhsv(336, 74%, 49%)
CMYKcmyk(0%, 73.8%, 44.4%, 50.6%)
CIE-LABlab(29.33, 42.65, 0.37)
CIE-LCHlch(29.33, 42.65, 0.50°)
OKLaboklab(40.78% 0.1307 0.0014)
OKLCHoklch(40.78% 0.131 0.6)
XYZxyz(10.2543, 5.9668, 6.4049)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2146 #217E59
analogous
#7E2174 #7E2146 #7E2A21
triadic
#7E2146 #467E21 #21467E
tetradic
#7E2146 #747E21 #217E59 #2A217E
square
#7E2146 #747E21 #217E59 #2A217E
split-complementary
#7E2146 #217E2A #21747E
monochromatic
#1D0810 #4E142B #7E2146 #AE2E61 #D04A7F

Accessibility & contrast

On white

9.58
#7E2146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E2146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2146
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2146#FFFFFF#000000##FFFFFF
##7E21461.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353A47
Deuteranopia (green-blind)
#4E4C44
Tritanopia (blue-blind)
#891430
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2146;
/* rgb */ color: rgb(126, 33, 70);
/* oklch */ color: oklch(40.8% 0.131 0.6);
Tailwind
colors: {
  custom: {
    50: '#a86479',
    500: '#7e2146',
    950: '#000000',
  },
}
SCSS
$custom: #7e2146;
$custom-light: #a86479;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2146",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 70
  },
  "hsl": {
    "h": 336.129,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40784,
    "c": 0.13072,
    "h": 0.6
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#7E2146
secondary
#4AB188
accent
#E2A446
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E2146

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

Preview Lab → · Contrast checker → · Palette generator →

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