#7E186A#7E186A

#7E186A is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.6% C 0.161 H 337.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7E186A
RGBrgb(126, 24, 106)
HSLhsl(312, 68%, 29%)
HSVhsv(312, 81%, 49%)
CMYKcmyk(0%, 81%, 15.9%, 50.6%)
CIE-LABlab(29.74, 50.38, -22.58)
CIE-LCHlch(29.74, 55.21, 335.86°)
OKLaboklab(41.57% 0.149 -0.0614)
OKLCHoklch(41.57% 0.161 337.6)
XYZxyz(11.5326, 6.1306, 14.2088)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E186A #187E2C
analogous
#5F187E #7E186A #7E1837
triadic
#7E186A #6A7E18 #186A7E
tetradic
#7E186A #7E5F18 #187E2C #18377E
square
#7E186A #7E5F18 #187E2C #18377E
split-complementary
#7E186A #377E18 #187E5F
monochromatic
#1A0516 #4B0E3F #7E186A #B12295 #D937B9

Accessibility & contrast

On white

9.43
#7E186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E186A
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E186A#FFFFFF#000000##FFFFFF
##7E186A1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3C6C
Deuteranopia (green-blind)
#404C68
Tritanopia (blue-blind)
#851F40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e186a;
/* rgb */ color: rgb(126, 24, 106);
/* oklch */ color: oklch(41.6% 0.161 337.6);
Tailwind
colors: {
  custom: {
    50: '#a76295',
    500: '#7e186a',
    950: '#000000',
  },
}
SCSS
$custom: #7e186a;
$custom-light: #a76295;
$custom-dark: #000000;
JSON
{
  "hex": "#7e186a",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 311.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41574,
    "c": 0.16116,
    "h": 337.6
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#7E186A
secondary
#3FB256
accent
#EB5F3D
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E186A

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

Preview Lab → · Contrast checker → · Palette generator →

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