#7F186B#7F186B

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

Color values

HEX#7F186B
RGBrgb(127, 24, 107)
HSLhsl(312, 68%, 30%)
HSVhsv(312, 81%, 50%)
CMYKcmyk(0%, 81.1%, 15.7%, 50.2%)
CIE-LABlab(29.98, 50.77, -22.84)
CIE-LCHlch(29.98, 55.67, 335.78°)
OKLaboklab(41.8% 0.1501 -0.0621)
OKLCHoklch(41.8% 0.162 337.5)
XYZxyz(11.7331, 6.2280, 14.4913)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F186B #187F2C
analogous
#5F187F #7F186B #7F1838
triadic
#7F186B #6B7F18 #186B7F
tetradic
#7F186B #7F5F18 #187F2C #18387F
square
#7F186B #7F5F18 #187F2C #18387F
split-complementary
#7F186B #387F18 #187F5F
monochromatic
#1A0516 #4C0E40 #7F186B #B22296 #D938BA

Accessibility & contrast

On white

9.35
#7F186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F186B
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F186B#FFFFFF#000000##FFFFFF
##7F186B1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3D6D
Deuteranopia (green-blind)
#414C69
Tritanopia (blue-blind)
#861F40
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f186b;
/* rgb */ color: rgb(127, 24, 107);
/* oklch */ color: oklch(41.8% 0.162 337.5);
Tailwind
colors: {
  custom: {
    50: '#a86295',
    500: '#7f186b',
    950: '#000000',
  },
}
SCSS
$custom: #7f186b;
$custom-light: #a86295;
$custom-dark: #000000;
JSON
{
  "hex": "#7f186b",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 311.65,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41799,
    "c": 0.16246,
    "h": 337.5
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#7F186B
secondary
#3FB356
accent
#EB5F3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F186B

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

Preview Lab → · Contrast checker → · Palette generator →

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