#7E2252#7E2252

#7E2252 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.3% C 0.135 H 352.6°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2252
RGBrgb(126, 34, 82)
HSLhsl(329, 58%, 31%)
HSVhsv(329, 73%, 49%)
CMYKcmyk(0%, 73%, 34.9%, 50.6%)
CIE-LABlab(29.89, 43.64, -6.74)
CIE-LCHlch(29.89, 44.15, 351.22°)
OKLaboklab(41.33% 0.1335 -0.0173)
OKLCHoklch(41.33% 0.135 352.6)
XYZxyz(10.6998, 6.1901, 8.6123)
Luminance0.0619 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2252 #227E4E
analogous
#7C227E #7E2252 #7E2224
triadic
#7E2252 #527E22 #22527E
tetradic
#7E2252 #7E7C22 #227E4E #22247E
square
#7E2252 #7E7C22 #227E4E #22247E
split-complementary
#7E2252 #247E22 #227E7C
monochromatic
#1E0813 #4E1533 #7E2252 #AE2F71 #CF4C90

Accessibility & contrast

On white

9.38
#7E2252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E2252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2252
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2252#FFFFFF#000000##FFFFFF
##7E22521.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323C53
Deuteranopia (green-blind)
#4B4C50
Tritanopia (blue-blind)
#881B37
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2252;
/* rgb */ color: rgb(126, 34, 82);
/* oklch */ color: oklch(41.3% 0.135 352.6);
Tailwind
colors: {
  custom: {
    50: '#a76582',
    500: '#7e2252',
    950: '#000000',
  },
}
SCSS
$custom: #7e2252;
$custom-light: #a76582;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2252",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 328.696,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41332,
    "c": 0.13461,
    "h": 352.6
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#7E2252
secondary
#4BB17C
accent
#E19147
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E2252

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

Preview Lab → · Contrast checker → · Palette generator →

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