#7F1F6D#7F1F6D

#7F1F6D is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.5% C 0.156 H 336.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7F1F6D
RGBrgb(127, 31, 109)
HSLhsl(311, 61%, 31%)
HSVhsv(311, 76%, 50%)
CMYKcmyk(0%, 75.6%, 14.2%, 50.2%)
CIE-LABlab(30.87, 48.82, -22.72)
CIE-LCHlch(30.87, 53.85, 335.04°)
OKLaboklab(42.48% 0.1436 -0.0619)
OKLCHoklch(42.48% 0.156 336.7)
XYZxyz(12.0029, 6.5972, 15.1063)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F6D #1F7F31
analogous
#611F7F #7F1F6D #7F1F3D
triadic
#7F1F6D #6D7F1F #1F6D7F
tetradic
#7F1F6D #7F611F #1F7F31 #1F3D7F
square
#7F1F6D #7F611F #1F7F31 #1F3D7F
split-complementary
#7F1F6D #3D7F1F #1F7F61
monochromatic
#1D0719 #4E1343 #7F1F6D #B02B97 #D246B8

Accessibility & contrast

On white

9.05
#7F1F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F1F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F6D
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F6D#FFFFFF#000000##FFFFFF
##7F1F6D1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6F
Deuteranopia (green-blind)
#424E6B
Tritanopia (blue-blind)
#862543
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1f6d;
/* rgb */ color: rgb(127, 31, 109);
/* oklch */ color: oklch(42.5% 0.156 336.7);
Tailwind
colors: {
  custom: {
    50: '#a76597',
    500: '#7f1f6d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f6d;
$custom-light: #a76597;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f6d",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 311.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42475,
    "c": 0.15633,
    "h": 336.7
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#7F1F6D
secondary
#48B25C
accent
#E46244
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F1F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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