#7F1262#7F1262

#7F1262 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.9% C 0.162 H 342.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#7F1262
RGBrgb(127, 18, 98)
HSLhsl(316, 75%, 28%)
HSVhsv(316, 86%, 50%)
CMYKcmyk(0%, 85.8%, 22.8%, 50.2%)
CIE-LABlab(28.97, 51.09, -18.59)
CIE-LCHlch(28.97, 54.36, 340.01°)
OKLaboklab(40.93% 0.1539 -0.05)
OKLCHoklch(40.93% 0.162 342)
XYZxyz(11.1737, 5.8277, 12.0893)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1262 #127F2F
analogous
#65127F #7F1262 #7F122C
triadic
#7F1262 #627F12 #12627F
tetradic
#7F1262 #7F6512 #127F2F #122C7F
square
#7F1262 #7F6512 #127F2F #122C7F
split-complementary
#7F1262 #2C7F12 #127F65
monochromatic
#1B0415 #490A39 #7F1262 #B51A8B #E12BB0

Accessibility & contrast

On white

9.70
#7F1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7F1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1262
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1262#FFFFFF#000000##FFFFFF
##7F12621.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3964
Deuteranopia (green-blind)
#434A60
Tritanopia (blue-blind)
#87143A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f1262;
/* rgb */ color: rgb(127, 18, 98);
/* oklch */ color: oklch(40.9% 0.162 342.0);
Tailwind
colors: {
  custom: {
    50: '#a8608f',
    500: '#7f1262',
    950: '#000000',
  },
}
SCSS
$custom: #7f1262;
$custom-light: #a8608f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1262",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 315.963,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40928,
    "c": 0.16183,
    "h": 342
  },
  "luminance": 0.05826
}

Semantic roles & 50–950 ramp

primary
#7F1262
secondary
#38B559
accent
#F26836
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050C
muted
#7F7A7D

Preview Lab

Preview with #7F1262

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

Preview Lab → · Contrast checker → · Palette generator →

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