#7F1B6D#7F1B6D

#7F1B6D is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.1% C 0.161 H 336.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7F1B6D
RGBrgb(127, 27, 109)
HSLhsl(311, 65%, 30%)
HSVhsv(311, 79%, 50%)
CMYKcmyk(0%, 78.7%, 14.2%, 50.2%)
CIE-LABlab(30.40, 50.16, -23.46)
CIE-LCHlch(30.40, 55.37, 334.94°)
OKLaboklab(42.14% 0.1476 -0.0639)
OKLCHoklch(42.14% 0.161 336.6)
XYZxyz(11.9049, 6.4011, 15.0736)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B6D #1B7F2D
analogous
#5F1B7F #7F1B6D #7F1B3B
triadic
#7F1B6D #6D7F1B #1B6D7F
tetradic
#7F1B6D #7F5F1B #1B7F2D #1B3B7F
square
#7F1B6D #7F5F1B #1B7F2D #1B3B7F
split-complementary
#7F1B6D #3B7F1B #1B7F5F
monochromatic
#1A0616 #4D1042 #7F1B6D #B12698 #D63EBB

Accessibility & contrast

On white

9.21
#7F1B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F1B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B6D
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B6D#FFFFFF#000000##FFFFFF
##7F1B6D1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3E6F
Deuteranopia (green-blind)
#414D6B
Tritanopia (blue-blind)
#862242
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1b6d;
/* rgb */ color: rgb(127, 27, 109);
/* oklch */ color: oklch(42.1% 0.161 336.6);
Tailwind
colors: {
  custom: {
    50: '#a86397',
    500: '#7f1b6d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b6d;
$custom-light: #a86397;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b6d",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 310.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42137,
    "c": 0.16081,
    "h": 336.6
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#7F1B6D
secondary
#43B357
accent
#E85E40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F1B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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