#7E186C#7E186C

#7E186C is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.7% C 0.163 H 336.6°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7E186C
RGBrgb(126, 24, 108)
HSLhsl(311, 68%, 29%)
HSVhsv(311, 81%, 49%)
CMYKcmyk(0%, 81%, 14.3%, 50.6%)
CIE-LABlab(29.84, 50.68, -23.71)
CIE-LCHlch(29.84, 55.95, 334.93°)
OKLaboklab(41.68% 0.1492 -0.0646)
OKLCHoklch(41.68% 0.163 336.6)
XYZxyz(11.6378, 6.1727, 14.7630)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E186C #187E2A
analogous
#5D187E #7E186C #7E1839
triadic
#7E186C #6C7E18 #186C7E
tetradic
#7E186C #7E5D18 #187E2A #18397E
square
#7E186C #7E5D18 #187E2A #18397E
split-complementary
#7E186C #397E18 #187E5D
monochromatic
#1A0516 #4B0E40 #7E186C #B12298 #D937BC

Accessibility & contrast

On white

9.40
#7E186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E186C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E186C#FFFFFF#000000##FFFFFF
##7E186C1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3D6E
Deuteranopia (green-blind)
#3F4C6A
Tritanopia (blue-blind)
#852041
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e186c;
/* rgb */ color: rgb(126, 24, 108);
/* oklch */ color: oklch(41.7% 0.163 336.6);
Tailwind
colors: {
  custom: {
    50: '#a76296',
    500: '#7e186c',
    950: '#000000',
  },
}
SCSS
$custom: #7e186c;
$custom-light: #a76296;
$custom-dark: #000000;
JSON
{
  "hex": "#7e186c",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 310.588,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41683,
    "c": 0.16258,
    "h": 336.6
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#7E186C
secondary
#3FB254
accent
#EB5C3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E186C

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

Preview Lab → · Contrast checker → · Palette generator →

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