#7C186B#7C186B

#7C186B is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.3% C 0.161 H 336.2°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#7C186B
RGBrgb(124, 24, 107)
HSLhsl(310, 68%, 29%)
HSVhsv(310, 81%, 49%)
CMYKcmyk(0%, 80.6%, 13.7%, 51.4%)
CIE-LABlab(29.41, 50.05, -23.76)
CIE-LCHlch(29.41, 55.41, 334.60°)
OKLaboklab(41.29% 0.1471 -0.0648)
OKLCHoklch(41.29% 0.161 336.2)
XYZxyz(11.2929, 6.0009, 14.4706)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C186B #187C29
analogous
#5B187C #7C186B #7C1839
triadic
#7C186B #6B7C18 #186B7C
tetradic
#7C186B #7C5B18 #187C29 #18397C
square
#7C186B #7C5B18 #187C29 #18397C
split-complementary
#7C186B #397C18 #187C5B
monochromatic
#1A0516 #490E3F #7C186B #AF2297 #D836BD

Accessibility & contrast

On white

9.55
#7C186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7C186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C186B
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C186B#FFFFFF#000000##FFFFFF
##7C186B1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3C6D
Deuteranopia (green-blind)
#3E4B69
Tritanopia (blue-blind)
#832040
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c186b;
/* rgb */ color: rgb(124, 24, 107);
/* oklch */ color: oklch(41.3% 0.161 336.2);
Tailwind
colors: {
  custom: {
    50: '#a56295',
    500: '#7c186b',
    950: '#000000',
  },
}
SCSS
$custom: #7c186b;
$custom-light: #a56295;
$custom-dark: #000000;
JSON
{
  "hex": "#7c186b",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 310.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41287,
    "c": 0.16072,
    "h": 336.2
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#7C186B
secondary
#3FB152
accent
#EA5B3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C186B

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

Preview Lab → · Contrast checker → · Palette generator →

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