#7E246F#7E246F

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

Color values

HEX#7E246F
RGBrgb(126, 36, 111)
HSLhsl(310, 56%, 32%)
HSVhsv(310, 71%, 49%)
CMYKcmyk(0%, 71.4%, 11.9%, 50.6%)
CIE-LABlab(31.45, 47.02, -23.10)
CIE-LCHlch(31.45, 52.38, 333.83°)
OKLaboklab(42.9% 0.1372 -0.063)
OKLCHoklch(42.9% 0.151 335.3)
XYZxyz(12.1044, 6.8461, 15.7198)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E246F #247E33
analogous
#60247E #7E246F #7E2442
triadic
#7E246F #6F7E24 #246F7E
tetradic
#7E246F #7E6024 #247E33 #24427E
square
#7E246F #7E6024 #247E33 #24427E
split-complementary
#7E246F #427E24 #247E60
monochromatic
#1F091B #4E1645 #7E246F #AE3299 #CD50B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E246F#FFFFFF#000000##FFFFFF
##7E246F1.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)
#244171
Deuteranopia (green-blind)
#434F6D
Tritanopia (blue-blind)
#842A46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e246f;
/* rgb */ color: rgb(126, 36, 111);
/* oklch */ color: oklch(42.9% 0.151 335.3);
Tailwind
colors: {
  custom: {
    50: '#a66798',
    500: '#7e246f',
    950: '#000000',
  },
}
SCSS
$custom: #7e246f;
$custom-light: #a66798;
$custom-dark: #000000;
JSON
{
  "hex": "#7e246f",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 310,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42895,
    "c": 0.15097,
    "h": 335.3
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#7E246F
secondary
#4EB05E
accent
#DF6249
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E246F

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

Preview Lab → · Contrast checker → · Palette generator →

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