#7F1848#7F1848

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

Color values

HEX#7F1848
RGBrgb(127, 24, 72)
HSLhsl(332, 68%, 30%)
HSVhsv(332, 81%, 50%)
CMYKcmyk(0%, 81.1%, 43.3%, 50.2%)
CIE-LABlab(28.47, 46.30, -2.20)
CIE-LCHlch(28.47, 46.36, 357.28°)
OKLaboklab(40.21% 0.1424 -0.0052)
OKLCHoklch(40.21% 0.142 357.9)
XYZxyz(10.2495, 5.6345, 6.6775)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1848 #187F4F
analogous
#7F187C #7F1848 #7F1C18
triadic
#7F1848 #487F18 #18487F
tetradic
#7F1848 #7C7F18 #187F4F #1C187F
square
#7F1848 #7C7F18 #187F4F #1C187F
split-complementary
#7F1848 #187F1C #187C7F
monochromatic
#1A050F #4C0E2B #7F1848 #B22265 #D93883

Accessibility & contrast

On white

9.87
#7F1848 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7F1848 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1848
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1848#FFFFFF#000000##FFFFFF
##7F18481.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3749
Deuteranopia (green-blind)
#4B4A46
Tritanopia (blue-blind)
#8A052E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1848;
/* rgb */ color: rgb(127, 24, 72);
/* oklch */ color: oklch(40.2% 0.142 357.9);
Tailwind
colors: {
  custom: {
    50: '#a9617a',
    500: '#7f1848',
    950: '#000000',
  },
}
SCSS
$custom: #7f1848;
$custom-light: #a9617a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1848",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 72
  },
  "hsl": {
    "h": 332.039,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.40212,
    "c": 0.14249,
    "h": 357.9
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#7F1848
secondary
#3FB37D
accent
#EB9A3D
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#100509
muted
#7F7A7B

Preview Lab

Preview with #7F1848

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

Preview Lab → · Contrast checker → · Palette generator →

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