#7F1557#7F1557

#7F1557 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.6% C 0.153 H 348.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#7F1557
RGBrgb(127, 21, 87)
HSLhsl(323, 72%, 29%)
HSVhsv(323, 83%, 50%)
CMYKcmyk(0%, 83.5%, 31.5%, 50.2%)
CIE-LABlab(28.74, 48.89, -11.74)
CIE-LCHlch(28.74, 50.28, 346.49°)
OKLaboklab(40.6% 0.1495 -0.0309)
OKLCHoklch(40.6% 0.153 348.3)
XYZxyz(10.7414, 5.7377, 9.5568)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1557 #157F3D
analogous
#72157F #7F1557 #7F1522
triadic
#7F1557 #577F15 #15577F
tetradic
#7F1557 #7F7215 #157F3D #15227F
square
#7F1557 #7F7215 #157F3D #15227F
split-complementary
#7F1557 #227F15 #157F72
monochromatic
#1A0412 #4A0C33 #7F1557 #B41E7B #DD319C

Accessibility & contrast

On white

9.78
#7F1557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7F1557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1557
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1557#FFFFFF#000000##FFFFFF
##7F15571.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273859
Deuteranopia (green-blind)
#474A55
Tritanopia (blue-blind)
#890E35
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f1557;
/* rgb */ color: rgb(127, 21, 87);
/* oklch */ color: oklch(40.6% 0.153 348.3);
Tailwind
colors: {
  custom: {
    50: '#a86086',
    500: '#7f1557',
    950: '#000000',
  },
}
SCSS
$custom: #7f1557;
$custom-light: #a86086;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1557",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 322.642,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.40597,
    "c": 0.15261,
    "h": 348.3
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#7F1557
secondary
#3CB469
accent
#EE7E39
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7F1557

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

Preview Lab → · Contrast checker → · Palette generator →

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