#7E246B#7E246B

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

Color values

HEX#7E246B
RGBrgb(126, 36, 107)
HSLhsl(313, 56%, 32%)
HSVhsv(313, 71%, 49%)
CMYKcmyk(0%, 71.4%, 15.1%, 50.6%)
CIE-LABlab(31.25, 46.38, -20.86)
CIE-LCHlch(31.25, 50.85, 335.78°)
OKLaboklab(42.69% 0.1367 -0.0566)
OKLCHoklch(42.69% 0.148 337.5)
XYZxyz(11.8891, 6.7600, 14.5857)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E246B #247E37
analogous
#64247E #7E246B #7E243E
triadic
#7E246B #6B7E24 #246B7E
tetradic
#7E246B #7E6424 #247E37 #243E7E
square
#7E246B #7E6424 #247E37 #243E7E
split-complementary
#7E246B #3E7E24 #247E64
monochromatic
#1F091A #4E1643 #7E246B #AE3293 #CD50B2

Accessibility & contrast

On white

8.93
#7E246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E246B
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E246B#FFFFFF#000000##FFFFFF
##7E246B1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27416D
Deuteranopia (green-blind)
#444F69
Tritanopia (blue-blind)
#852944
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e246b;
/* rgb */ color: rgb(126, 36, 107);
/* oklch */ color: oklch(42.7% 0.148 337.5);
Tailwind
colors: {
  custom: {
    50: '#a66795',
    500: '#7e246b',
    950: '#000000',
  },
}
SCSS
$custom: #7e246b;
$custom-light: #a66795;
$custom-dark: #000000;
JSON
{
  "hex": "#7e246b",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 312.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42685,
    "c": 0.14793,
    "h": 337.5
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

primary
#7E246B
secondary
#4EB062
accent
#DF6949
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E246B

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

Preview Lab → · Contrast checker → · Palette generator →

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