#7F186D#7F186D

#7F186D is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.9% C 0.164 H 336.5°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#7F186D
RGBrgb(127, 24, 109)
HSLhsl(310, 68%, 30%)
HSVhsv(310, 81%, 50%)
CMYKcmyk(0%, 81.1%, 14.2%, 50.2%)
CIE-LABlab(30.08, 51.07, -23.96)
CIE-LCHlch(30.08, 56.41, 334.87°)
OKLaboklab(41.91% 0.1503 -0.0653)
OKLCHoklch(41.91% 0.164 336.5)
XYZxyz(11.8396, 6.2705, 15.0518)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F186D #187F2A
analogous
#5D187F #7F186D #7F183A
triadic
#7F186D #6D7F18 #186D7F
tetradic
#7F186D #7F5D18 #187F2A #183A7F
square
#7F186D #7F5D18 #187F2A #183A7F
split-complementary
#7F186D #3A7F18 #187F5D
monochromatic
#1A0516 #4C0E41 #7F186D #B22299 #D938BD

Accessibility & contrast

On white

9.32
#7F186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F186D
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F186D#FFFFFF#000000##FFFFFF
##7F186D1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3D6F
Deuteranopia (green-blind)
#404C6B
Tritanopia (blue-blind)
#862042
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f186d;
/* rgb */ color: rgb(127, 24, 109);
/* oklch */ color: oklch(41.9% 0.164 336.5);
Tailwind
colors: {
  custom: {
    50: '#a86297',
    500: '#7f186d',
    950: '#000000',
  },
}
SCSS
$custom: #7f186d;
$custom-light: #a86297;
$custom-dark: #000000;
JSON
{
  "hex": "#7f186d",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 310.485,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41908,
    "c": 0.16387,
    "h": 336.5
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#7F186D
secondary
#3FB354
accent
#EB5B3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F186D

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

Preview Lab → · Contrast checker → · Palette generator →

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