#7F126C#7F126C

#7F126C is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.5% C 0.168 H 336.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7F126C
RGBrgb(127, 18, 108)
HSLhsl(310, 75%, 28%)
HSVhsv(310, 86%, 50%)
CMYKcmyk(0%, 85.8%, 15%, 50.2%)
CIE-LABlab(29.48, 52.50, -24.26)
CIE-LCHlch(29.48, 57.83, 335.20°)
OKLaboklab(41.46% 0.1549 -0.0661)
OKLCHoklch(41.46% 0.168 336.9)
XYZxyz(11.6757, 6.0285, 14.7332)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F126C #127F25
analogous
#5B127F #7F126C #7F1235
triadic
#7F126C #6C7F12 #126C7F
tetradic
#7F126C #7F5B12 #127F25 #12357F
square
#7F126C #7F5B12 #127F25 #12357F
split-complementary
#7F126C #357F12 #127F5B
monochromatic
#1B0417 #490A3E #7F126C #B51A9A #E12BC1

Accessibility & contrast

On white

9.52
#7F126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7F126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F126C
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F126C#FFFFFF#000000##FFFFFF
##7F126C1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6E
Deuteranopia (green-blind)
#3F4B6A
Tritanopia (blue-blind)
#861B40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f126c;
/* rgb */ color: rgb(127, 18, 108);
/* oklch */ color: oklch(41.5% 0.168 336.9);
Tailwind
colors: {
  custom: {
    50: '#a86096',
    500: '#7f126c',
    950: '#000000',
  },
}
SCSS
$custom: #7f126c;
$custom-light: #a86096;
$custom-dark: #000000;
JSON
{
  "hex": "#7f126c",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 310.459,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41461,
    "c": 0.16847,
    "h": 336.9
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#7F126C
secondary
#38B54E
accent
#F25736
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F126C

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

Preview Lab → · Contrast checker → · Palette generator →

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