#7E2148#7E2148

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

Color values

HEX#7E2148
RGBrgb(126, 33, 72)
HSLhsl(335, 58%, 31%)
HSVhsv(335, 74%, 49%)
CMYKcmyk(0%, 73.8%, 42.9%, 50.6%)
CIE-LABlab(29.39, 42.86, -0.86)
CIE-LCHlch(29.39, 42.87, 358.85°)
OKLaboklab(40.85% 0.1314 -0.0017)
OKLCHoklch(40.85% 0.131 359.2)
XYZxyz(10.3185, 5.9925, 6.7429)
Luminance0.0599 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2148 #217E57
analogous
#7E2176 #7E2148 #7E2821
triadic
#7E2148 #487E21 #21487E
tetradic
#7E2148 #767E21 #217E57 #28217E
square
#7E2148 #767E21 #217E57 #28217E
split-complementary
#7E2148 #217E28 #21767E
monochromatic
#1D0811 #4E142C #7E2148 #AE2E64 #D04A82

Accessibility & contrast

On white

9.55
#7E2148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E2148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2148
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2148#FFFFFF#000000##FFFFFF
##7E21481.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343A49
Deuteranopia (green-blind)
#4D4C46
Tritanopia (blue-blind)
#891531
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2148;
/* rgb */ color: rgb(126, 33, 72);
/* oklch */ color: oklch(40.9% 0.131 359.2);
Tailwind
colors: {
  custom: {
    50: '#a8647a',
    500: '#7e2148',
    950: '#000000',
  },
}
SCSS
$custom: #7e2148;
$custom-light: #a8647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2148",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 334.839,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40853,
    "c": 0.13144,
    "h": 359.2
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#7E2148
secondary
#4AB186
accent
#E2A046
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E2148

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

Preview Lab → · Contrast checker → · Palette generator →

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