#7E2A6F#7E2A6F

#7E2A6F is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.5% C 0.143 H 335.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7E2A6F
RGBrgb(126, 42, 111)
HSLhsl(311, 50%, 33%)
HSVhsv(311, 67%, 49%)
CMYKcmyk(0%, 66.7%, 11.9%, 50.6%)
CIE-LABlab(32.35, 44.52, -21.71)
CIE-LCHlch(32.35, 49.53, 334.01°)
OKLaboklab(43.54% 0.1298 -0.0591)
OKLCHoklch(43.54% 0.143 335.5)
XYZxyz(12.3015, 7.2403, 15.7855)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A6F #2A7E39
analogous
#632A7E #7E2A6F #7E2A45
triadic
#7E2A6F #6F7E2A #2A6F7E
tetradic
#7E2A6F #7E632A #2A7E39 #2A457E
square
#7E2A6F #7E632A #2A7E39 #2A457E
split-complementary
#7E2A6F #457E2A #2A7E63
monochromatic
#220B1E #501B47 #7E2A6F #AC3997 #C85AB4

Accessibility & contrast

On white

8.58
#7E2A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E2A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A6F
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A6F#FFFFFF#000000##FFFFFF
##7E2A6F1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4471
Deuteranopia (green-blind)
#45516D
Tritanopia (blue-blind)
#842F48
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2a6f;
/* rgb */ color: rgb(126, 42, 111);
/* oklch */ color: oklch(43.5% 0.143 335.5);
Tailwind
colors: {
  custom: {
    50: '#a66a98',
    500: '#7e2a6f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a6f;
$custom-light: #a66a98;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a6f",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 310.714,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43544,
    "c": 0.14264,
    "h": 335.5
  },
  "luminance": 0.07239
}

Semantic roles & 50–950 ramp

primary
#7E2A6F
secondary
#56AE66
accent
#DA674E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E2A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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