#7E2A5B#7E2A5B

#7E2A5B is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.6% C 0.128 H 347.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7E2A5B
RGBrgb(126, 42, 91)
HSLhsl(325, 50%, 33%)
HSVhsv(325, 67%, 49%)
CMYKcmyk(0%, 66.7%, 27.8%, 50.6%)
CIE-LABlab(31.46, 41.45, -10.24)
CIE-LCHlch(31.46, 42.69, 346.12°)
OKLaboklab(42.6% 0.1256 -0.0269)
OKLCHoklch(42.6% 0.128 347.9)
XYZxyz(11.3209, 6.8480, 10.6211)
Luminance0.0685 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A5B #2A7E4D
analogous
#772A7E #7E2A5B #7E2A31
triadic
#7E2A5B #5B7E2A #2A5B7E
tetradic
#7E2A5B #7E772A #2A7E4D #2A317E
square
#7E2A5B #7E772A #2A7E4D #2A317E
split-complementary
#7E2A5B #317E2A #2A7E77
monochromatic
#220B19 #501B3A #7E2A5B #AC397C #C85A9A

Accessibility & contrast

On white

8.86
#7E2A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E2A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A5B
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A5B#FFFFFF#000000##FFFFFF
##7E2A5B1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34415C
Deuteranopia (green-blind)
#4C4F59
Tritanopia (blue-blind)
#87273E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2a5b;
/* rgb */ color: rgb(126, 42, 91);
/* oklch */ color: oklch(42.6% 0.128 347.9);
Tailwind
colors: {
  custom: {
    50: '#a66989',
    500: '#7e2a5b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a5b;
$custom-light: #a66989;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a5b",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 91
  },
  "hsl": {
    "h": 325,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42602,
    "c": 0.12841,
    "h": 347.9
  },
  "luminance": 0.06847
}

Semantic roles & 50–950 ramp

primary
#7E2A5B
secondary
#56AE7B
accent
#DA884E
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10070B
muted
#7F7A7C

Preview Lab

Preview with #7E2A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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