#7F1254#7F1254

#7F1254 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.3% C 0.154 H 349.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#7F1254
RGBrgb(127, 18, 84)
HSLhsl(324, 75%, 28%)
HSVhsv(324, 86%, 50%)
CMYKcmyk(0%, 85.8%, 33.9%, 50.2%)
CIE-LABlab(28.34, 49.31, -10.37)
CIE-LCHlch(28.34, 50.39, 348.13°)
OKLaboklab(40.27% 0.1512 -0.0271)
OKLCHoklch(40.27% 0.154 349.8)
XYZxyz(10.5696, 5.5860, 8.9074)
Luminance0.0558 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1254 #127F3D
analogous
#73127F #7F1254 #7F121D
triadic
#7F1254 #547F12 #12547F
tetradic
#7F1254 #7F7312 #127F3D #121D7F
square
#7F1254 #7F7312 #127F3D #121D7F
split-complementary
#7F1254 #1D7F12 #127F73
monochromatic
#1B0412 #490A31 #7F1254 #B51A77 #E12B99

Accessibility & contrast

On white

9.92
#7F1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#7F1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1254
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1254#FFFFFF#000000##FFFFFF
##7F12541.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273756
Deuteranopia (green-blind)
#474A52
Tritanopia (blue-blind)
#890732
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1254;
/* rgb */ color: rgb(127, 18, 84);
/* oklch */ color: oklch(40.3% 0.154 349.8);
Tailwind
colors: {
  custom: {
    50: '#a85f84',
    500: '#7f1254',
    950: '#000000',
  },
}
SCSS
$custom: #7f1254;
$custom-light: #a85f84;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1254",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 323.67,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40267,
    "c": 0.15361,
    "h": 349.8
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#7F1254
secondary
#38B569
accent
#F28036
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7F1254

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

Preview Lab → · Contrast checker → · Palette generator →

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