#7E186D#7E186D

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

Color values

HEX#7E186D
RGBrgb(126, 24, 109)
HSLhsl(310, 68%, 29%)
HSVhsv(310, 81%, 49%)
CMYKcmyk(0%, 81%, 13.5%, 50.6%)
CIE-LABlab(29.90, 50.83, -24.26)
CIE-LCHlch(29.90, 56.33, 334.48°)
OKLaboklab(41.74% 0.1493 -0.0662)
OKLCHoklch(41.74% 0.163 336.1)
XYZxyz(11.6913, 6.1941, 15.0449)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E186D #187E29
analogous
#5C187E #7E186D #7E183A
triadic
#7E186D #6D7E18 #186D7E
tetradic
#7E186D #7E5C18 #187E29 #183A7E
square
#7E186D #7E5C18 #187E29 #183A7E
split-complementary
#7E186D #3A7E18 #187E5C
monochromatic
#1A0516 #4B0E41 #7E186D #B12299 #D937BE

Accessibility & contrast

On white

9.38
#7E186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E186D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E186D#FFFFFF#000000##FFFFFF
##7E186D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3D6F
Deuteranopia (green-blind)
#3F4C6B
Tritanopia (blue-blind)
#852042
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e186d;
/* rgb */ color: rgb(126, 24, 109);
/* oklch */ color: oklch(41.7% 0.163 336.1);
Tailwind
colors: {
  custom: {
    50: '#a76297',
    500: '#7e186d',
    950: '#000000',
  },
}
SCSS
$custom: #7e186d;
$custom-light: #a76297;
$custom-dark: #000000;
JSON
{
  "hex": "#7e186d",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 310,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41738,
    "c": 0.1633,
    "h": 336.1
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

primary
#7E186D
secondary
#3FB253
accent
#EB5A3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E186D

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

Preview Lab → · Contrast checker → · Palette generator →

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