#7F2161#7F2161

#7F2161 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.1% C 0.145 H 343.5°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7F2161
RGBrgb(127, 33, 97)
HSLhsl(319, 59%, 31%)
HSVhsv(319, 74%, 50%)
CMYKcmyk(0%, 74%, 23.6%, 50.2%)
CIE-LABlab(30.55, 46.31, -15.49)
CIE-LCHlch(30.55, 48.83, 341.50°)
OKLaboklab(42.06% 0.1395 -0.0414)
OKLCHoklch(42.06% 0.145 343.5)
XYZxyz(11.4543, 6.4640, 11.9514)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2161 #217F3F
analogous
#6E217F #7F2161 #7F2132
triadic
#7F2161 #617F21 #21617F
tetradic
#7F2161 #7F6E21 #217F3F #21327F
square
#7F2161 #7F6E21 #217F3F #21327F
split-complementary
#7F2161 #327F21 #217F6E
monochromatic
#1E0817 #4E143C #7F2161 #B02E86 #D04AA5

Accessibility & contrast

On white

9.16
#7F2161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F2161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2161
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2161#FFFFFF#000000##FFFFFF
##7F21611.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3E63
Deuteranopia (green-blind)
#474E5F
Tritanopia (blue-blind)
#87213E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f2161;
/* rgb */ color: rgb(127, 33, 97);
/* oklch */ color: oklch(42.1% 0.145 343.5);
Tailwind
colors: {
  custom: {
    50: '#a7658e',
    500: '#7f2161',
    950: '#000000',
  },
}
SCSS
$custom: #7f2161;
$custom-light: #a7658e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2161",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 319.149,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42057,
    "c": 0.14549,
    "h": 343.5
  },
  "luminance": 0.06463
}

Semantic roles & 50–950 ramp

primary
#7F2161
secondary
#4AB26B
accent
#E27846
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7F2161

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

Preview Lab → · Contrast checker → · Palette generator →

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