#7F2156#7F2156

#7F2156 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.6% C 0.139 H 350.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#7F2156
RGBrgb(127, 33, 86)
HSLhsl(326, 59%, 31%)
HSVhsv(326, 74%, 50%)
CMYKcmyk(0%, 74%, 32.3%, 50.2%)
CIE-LABlab(30.09, 44.82, -9.04)
CIE-LCHlch(30.09, 45.72, 348.60°)
OKLaboklab(41.57% 0.1368 -0.0235)
OKLCHoklch(41.57% 0.139 350.2)
XYZxyz(10.9765, 6.2729, 9.4350)
Luminance0.0627 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2156 #217F4A
analogous
#79217F #7F2156 #7F2127
triadic
#7F2156 #567F21 #21567F
tetradic
#7F2156 #7F7921 #217F4A #21277F
square
#7F2156 #7F7921 #217F4A #21277F
split-complementary
#7F2156 #277F21 #217F79
monochromatic
#1E0814 #4E1435 #7F2156 #B02E77 #D04A96

Accessibility & contrast

On white

9.32
#7F2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7F2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2156
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2156#FFFFFF#000000##FFFFFF
##7F21561.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303C57
Deuteranopia (green-blind)
#4B4D54
Tritanopia (blue-blind)
#891B38
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f2156;
/* rgb */ color: rgb(127, 33, 86);
/* oklch */ color: oklch(41.6% 0.139 350.2);
Tailwind
colors: {
  custom: {
    50: '#a86585',
    500: '#7f2156',
    950: '#000000',
  },
}
SCSS
$custom: #7f2156;
$custom-light: #a86585;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2156",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 326.17,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41567,
    "c": 0.13885,
    "h": 350.2
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#7F2156
secondary
#4AB277
accent
#E28A46
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F2156

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

Preview Lab → · Contrast checker → · Palette generator →

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