#7F126A#7F126A

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

Color values

HEX#7F126A
RGBrgb(127, 18, 106)
HSLhsl(312, 75%, 28%)
HSVhsv(312, 86%, 50%)
CMYKcmyk(0%, 85.8%, 16.5%, 50.2%)
CIE-LABlab(29.38, 52.21, -23.14)
CIE-LCHlch(29.38, 57.10, 336.10°)
OKLaboklab(41.35% 0.1548 -0.0629)
OKLCHoklch(41.35% 0.167 337.9)
XYZxyz(11.5705, 5.9864, 14.1790)
Luminance0.0599 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F126A #127F27
analogous
#5D127F #7F126A #7F1233
triadic
#7F126A #6A7F12 #126A7F
tetradic
#7F126A #7F5D12 #127F27 #12337F
square
#7F126A #7F5D12 #127F27 #12337F
split-complementary
#7F126A #337F12 #127F5D
monochromatic
#1B0416 #490A3D #7F126A #B51A97 #E12BBE

Accessibility & contrast

On white

9.56
#7F126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F126A
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F126A#FFFFFF#000000##FFFFFF
##7F126A1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6C
Deuteranopia (green-blind)
#3F4B68
Tritanopia (blue-blind)
#861A3F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f126a;
/* rgb */ color: rgb(127, 18, 106);
/* oklch */ color: oklch(41.3% 0.167 337.9);
Tailwind
colors: {
  custom: {
    50: '#a86095',
    500: '#7f126a',
    950: '#000000',
  },
}
SCSS
$custom: #7f126a;
$custom-light: #a86095;
$custom-dark: #000000;
JSON
{
  "hex": "#7f126a",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 311.56,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.4135,
    "c": 0.16711,
    "h": 337.9
  },
  "luminance": 0.05985
}

Semantic roles & 50–950 ramp

primary
#7F126A
secondary
#38B550
accent
#F25A36
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7F126A

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

Preview Lab → · Contrast checker → · Palette generator →

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