#7F1248#7F1248

#7F1248 is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.8% C 0.148 H 357.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#7F1248
RGBrgb(127, 18, 72)
HSLhsl(330, 75%, 28%)
HSVhsv(330, 86%, 50%)
CMYKcmyk(0%, 85.8%, 43.3%, 50.2%)
CIE-LABlab(27.88, 47.98, -3.07)
CIE-LCHlch(27.88, 48.08, 356.34°)
OKLaboklab(39.78% 0.1478 -0.0075)
OKLCHoklch(39.78% 0.148 357.1)
XYZxyz(10.1392, 5.4139, 6.6407)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1248 #127F49
analogous
#7F127E #7F1248 #7F1212
triadic
#7F1248 #487F12 #12487F
tetradic
#7F1248 #7E7F12 #127F49 #12127F
square
#7F1248 #7E7F12 #127F49 #12127F
split-complementary
#7F1248 #127F12 #127E7F
monochromatic
#1B040F #490A2A #7F1248 #B51A66 #E12B85

Accessibility & contrast

On white

10.08
#7F1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#7F1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1248
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1248#FFFFFF#000000##FFFFFF
##7F12481.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3549
Deuteranopia (green-blind)
#4A4946
Tritanopia (blue-blind)
#8A002C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7f1248;
/* rgb */ color: rgb(127, 18, 72);
/* oklch */ color: oklch(39.8% 0.148 357.1);
Tailwind
colors: {
  custom: {
    50: '#a95f7a',
    500: '#7f1248',
    950: '#000000',
  },
}
SCSS
$custom: #7f1248;
$custom-light: #a95f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1248",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 330.275,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39782,
    "c": 0.14797,
    "h": 357.1
  },
  "luminance": 0.05413
}

Semantic roles & 50–950 ramp

primary
#7F1248
secondary
#38B577
accent
#F29536
background
#FAF5F7
surface
#F5EAED
border
#CFC6C8
text
#110509
muted
#80797B

Preview Lab

Preview with #7F1248

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

Preview Lab → · Contrast checker → · Palette generator →

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