#7F2147#7F2147

#7F2147 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.0% C 0.132 H 0.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2147
RGBrgb(127, 33, 71)
HSLhsl(336, 59%, 31%)
HSVhsv(336, 74%, 50%)
CMYKcmyk(0%, 74%, 44.1%, 50.2%)
CIE-LABlab(29.55, 43.06, 0.06)
CIE-LCHlch(29.55, 43.06, 0.08°)
OKLaboklab(41% 0.132 0.0007)
OKLCHoklch(41% 0.132 0.3)
XYZxyz(10.4344, 6.0560, 6.5795)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2147 #217F59
analogous
#7F2176 #7F2147 #7F2A21
triadic
#7F2147 #477F21 #21477F
tetradic
#7F2147 #767F21 #217F59 #2A217F
square
#7F2147 #767F21 #217F59 #2A217F
split-complementary
#7F2147 #217F2A #21767F
monochromatic
#1E0811 #4E142C #7F2147 #B02E62 #D04A80

Accessibility & contrast

On white

9.50
#7F2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7F2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2147
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2147#FFFFFF#000000##FFFFFF
##7F21471.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353A48
Deuteranopia (green-blind)
#4E4C45
Tritanopia (blue-blind)
#8A1431
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f2147;
/* rgb */ color: rgb(127, 33, 71);
/* oklch */ color: oklch(41.0% 0.132 0.3);
Tailwind
colors: {
  custom: {
    50: '#a9657a',
    500: '#7f2147',
    950: '#000000',
  },
}
SCSS
$custom: #7f2147;
$custom-light: #a9657a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2147",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 335.745,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40996,
    "c": 0.13202,
    "h": 0.3
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#7F2147
secondary
#4AB288
accent
#E2A346
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7F2147

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

Preview Lab → · Contrast checker → · Palette generator →

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