#7F1252#7F1252

#7F1252 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.2% C 0.153 H 351.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#7F1252
RGBrgb(127, 18, 82)
HSLhsl(325, 75%, 28%)
HSVhsv(325, 86%, 50%)
CMYKcmyk(0%, 85.8%, 35.4%, 50.2%)
CIE-LABlab(28.26, 49.07, -9.17)
CIE-LCHlch(28.26, 49.92, 349.42°)
OKLaboklab(40.18% 0.1507 -0.0238)
OKLCHoklch(40.18% 0.153 351)
XYZxyz(10.4923, 5.5551, 8.5007)
Luminance0.0555 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1252 #127F3F
analogous
#75127F #7F1252 #7F121B
triadic
#7F1252 #527F12 #12527F
tetradic
#7F1252 #7F7512 #127F3F #121B7F
square
#7F1252 #7F7512 #127F3F #121B7F
split-complementary
#7F1252 #1B7F12 #127F75
monochromatic
#1B0411 #490A2F #7F1252 #B51A75 #E12B96

Accessibility & contrast

On white

9.95
#7F1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7F1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1252
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1252#FFFFFF#000000##FFFFFF
##7F12521.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283654
Deuteranopia (green-blind)
#484950
Tritanopia (blue-blind)
#890531
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1252;
/* rgb */ color: rgb(127, 18, 82);
/* oklch */ color: oklch(40.2% 0.153 351.0);
Tailwind
colors: {
  custom: {
    50: '#a95f82',
    500: '#7f1252',
    950: '#000000',
  },
}
SCSS
$custom: #7f1252;
$custom-light: #a95f82;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1252",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 324.771,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40181,
    "c": 0.15257,
    "h": 351
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#7F1252
secondary
#38B56C
accent
#F28436
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7F1252

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

Preview Lab → · Contrast checker → · Palette generator →

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