#7E2852#7E2852

#7E2852 is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.0% C 0.126 H 353.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7E2852
RGBrgb(126, 40, 82)
HSLhsl(331, 52%, 33%)
HSVhsv(331, 68%, 49%)
CMYKcmyk(0%, 68.3%, 34.9%, 50.6%)
CIE-LABlab(30.79, 41.13, -5.38)
CIE-LCHlch(30.79, 41.48, 352.54°)
OKLaboklab(42% 0.1256 -0.0137)
OKLCHoklch(42% 0.126 353.8)
XYZxyz(10.8866, 6.5636, 8.6746)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2852 #287E54
analogous
#7E287D #7E2852 #7E2928
triadic
#7E2852 #527E28 #28527E
tetradic
#7E2852 #7D7E28 #287E54 #29287E
square
#7E2852 #7D7E28 #287E54 #29287E
split-complementary
#7E2852 #287E29 #287D7E
monochromatic
#210B16 #501934 #7E2852 #AC3770 #CA578F

Accessibility & contrast

On white

9.08
#7E2852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E2852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2852
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2852#FFFFFF#000000##FFFFFF
##7E28521.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363F53
Deuteranopia (green-blind)
#4E4E50
Tritanopia (blue-blind)
#882239
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e2852;
/* rgb */ color: rgb(126, 40, 82);
/* oklch */ color: oklch(42.0% 0.126 353.8);
Tailwind
colors: {
  custom: {
    50: '#a76882',
    500: '#7e2852',
    950: '#000000',
  },
}
SCSS
$custom: #7e2852;
$custom-light: #a76882;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2852",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 330.698,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41998,
    "c": 0.12638,
    "h": 353.8
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#7E2852
secondary
#53AF82
accent
#DB964D
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E2852

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

Preview Lab → · Contrast checker → · Palette generator →

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