#7F186C#7F186C

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

Color values

HEX#7F186C
RGBrgb(127, 24, 108)
HSLhsl(311, 68%, 30%)
HSVhsv(311, 81%, 50%)
CMYKcmyk(0%, 81.1%, 15%, 50.2%)
CIE-LABlab(30.03, 50.92, -23.40)
CIE-LCHlch(30.03, 56.04, 335.32°)
OKLaboklab(41.85% 0.1502 -0.0637)
OKLCHoklch(41.85% 0.163 337)
XYZxyz(11.7860, 6.2491, 14.7699)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F186C #187F2B
analogous
#5F187F #7F186C #7F1839
triadic
#7F186C #6C7F18 #186C7F
tetradic
#7F186C #7F5F18 #187F2B #18397F
square
#7F186C #7F5F18 #187F2B #18397F
split-complementary
#7F186C #397F18 #187F5F
monochromatic
#1A0516 #4C0E40 #7F186C #B22298 #D938BC

Accessibility & contrast

On white

9.33
#7F186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7F186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F186C
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F186C#FFFFFF#000000##FFFFFF
##7F186C1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3D6E
Deuteranopia (green-blind)
#404C6A
Tritanopia (blue-blind)
#861F41
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f186c;
/* rgb */ color: rgb(127, 24, 108);
/* oklch */ color: oklch(41.9% 0.163 337.0);
Tailwind
colors: {
  custom: {
    50: '#a86296',
    500: '#7f186c',
    950: '#000000',
  },
}
SCSS
$custom: #7f186c;
$custom-light: #a86296;
$custom-dark: #000000;
JSON
{
  "hex": "#7f186c",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 311.068,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41854,
    "c": 0.16316,
    "h": 337
  },
  "luminance": 0.06248
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F186C

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

Preview Lab → · Contrast checker → · Palette generator →

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