#7F186A#7F186A

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

Color values

HEX#7F186A
RGBrgb(127, 24, 106)
HSLhsl(312, 68%, 30%)
HSVhsv(312, 81%, 50%)
CMYKcmyk(0%, 81.1%, 16.5%, 50.2%)
CIE-LABlab(29.93, 50.62, -22.27)
CIE-LCHlch(29.93, 55.30, 336.25°)
OKLaboklab(41.75% 0.15 -0.0605)
OKLCHoklch(41.75% 0.162 338)
XYZxyz(11.6808, 6.2070, 14.2158)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F186A #187F2D
analogous
#61187F #7F186A #7F1837
triadic
#7F186A #6A7F18 #186A7F
tetradic
#7F186A #7F6118 #187F2D #18377F
square
#7F186A #7F6118 #187F2D #18377F
split-complementary
#7F186A #377F18 #187F61
monochromatic
#1A0515 #4C0E3F #7F186A #B22295 #D938B8

Accessibility & contrast

On white

9.37
#7F186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F186A
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F186A#FFFFFF#000000##FFFFFF
##7F186A1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3C6C
Deuteranopia (green-blind)
#414C68
Tritanopia (blue-blind)
#861E40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f186a;
/* rgb */ color: rgb(127, 24, 106);
/* oklch */ color: oklch(41.7% 0.162 338.0);
Tailwind
colors: {
  custom: {
    50: '#a86295',
    500: '#7f186a',
    950: '#000000',
  },
}
SCSS
$custom: #7f186a;
$custom-light: #a86295;
$custom-dark: #000000;
JSON
{
  "hex": "#7f186a",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 312.233,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.16176,
    "h": 338
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#7F186A
secondary
#3FB357
accent
#EB603D
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F186A

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

Preview Lab → · Contrast checker → · Palette generator →

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