#7E246C#7E246C

#7E246C is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.7% C 0.149 H 337.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7E246C
RGBrgb(126, 36, 108)
HSLhsl(312, 56%, 32%)
HSVhsv(312, 71%, 49%)
CMYKcmyk(0%, 71.4%, 14.3%, 50.6%)
CIE-LABlab(31.30, 46.53, -21.42)
CIE-LCHlch(31.30, 51.23, 335.28°)
OKLaboklab(42.74% 0.1368 -0.0582)
OKLCHoklch(42.74% 0.149 337)
XYZxyz(11.9420, 6.7811, 14.8644)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E246C #247E36
analogous
#63247E #7E246C #7E243F
triadic
#7E246C #6C7E24 #246C7E
tetradic
#7E246C #7E6324 #247E36 #243F7E
square
#7E246C #7E6324 #247E36 #243F7E
split-complementary
#7E246C #3F7E24 #247E63
monochromatic
#1F091A #4E1643 #7E246C #AE3295 #CD50B4

Accessibility & contrast

On white

8.91
#7E246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E246C
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E246C#FFFFFF#000000##FFFFFF
##7E246C1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26416E
Deuteranopia (green-blind)
#444F6A
Tritanopia (blue-blind)
#852945
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e246c;
/* rgb */ color: rgb(126, 36, 108);
/* oklch */ color: oklch(42.7% 0.149 337.0);
Tailwind
colors: {
  custom: {
    50: '#a66796',
    500: '#7e246c',
    950: '#000000',
  },
}
SCSS
$custom: #7e246c;
$custom-light: #a66796;
$custom-dark: #000000;
JSON
{
  "hex": "#7e246c",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 312,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42737,
    "c": 0.14868,
    "h": 337
  },
  "luminance": 0.0678
}

Semantic roles & 50–950 ramp

primary
#7E246C
secondary
#4EB061
accent
#DF6749
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E246C

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

Preview Lab → · Contrast checker → · Palette generator →

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