#7E186B#7E186B

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

Color values

HEX#7E186B
RGBrgb(126, 24, 107)
HSLhsl(311, 68%, 29%)
HSVhsv(311, 81%, 49%)
CMYKcmyk(0%, 81%, 15.1%, 50.6%)
CIE-LABlab(29.79, 50.53, -23.15)
CIE-LCHlch(29.79, 55.58, 335.39°)
OKLaboklab(41.63% 0.1491 -0.063)
OKLCHoklch(41.63% 0.162 337.1)
XYZxyz(11.5849, 6.1515, 14.4843)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E186B #187E2B
analogous
#5E187E #7E186B #7E1838
triadic
#7E186B #6B7E18 #186B7E
tetradic
#7E186B #7E5E18 #187E2B #18387E
square
#7E186B #7E5E18 #187E2B #18387E
split-complementary
#7E186B #387E18 #187E5E
monochromatic
#1A0516 #4B0E3F #7E186B #B12297 #D937BB

Accessibility & contrast

On white

9.42
#7E186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E186B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E186B#FFFFFF#000000##FFFFFF
##7E186B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e186b;
/* rgb */ color: rgb(126, 24, 107);
/* oklch */ color: oklch(41.6% 0.162 337.1);
Tailwind
colors: {
  custom: {
    50: '#a76295',
    500: '#7e186b',
    950: '#000000',
  },
}
SCSS
$custom: #7e186b;
$custom-light: #a76295;
$custom-dark: #000000;
JSON
{
  "hex": "#7e186b",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 311.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41628,
    "c": 0.16188,
    "h": 337.1
  },
  "luminance": 0.0615
}

Semantic roles & 50–950 ramp

primary
#7E186B
secondary
#3FB255
accent
#EB5D3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E186B

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

Preview Lab → · Contrast checker → · Palette generator →

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