#7F2162#7F2162

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

Color values

HEX#7F2162
RGBrgb(127, 33, 98)
HSLhsl(319, 59%, 31%)
HSVhsv(319, 74%, 50%)
CMYKcmyk(0%, 74%, 22.8%, 50.2%)
CIE-LABlab(30.60, 46.45, -16.07)
CIE-LCHlch(30.60, 49.15, 340.91°)
OKLaboklab(42.11% 0.1397 -0.043)
OKLCHoklch(42.11% 0.146 342.9)
XYZxyz(11.5013, 6.4827, 12.1985)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2162 #217F3E
analogous
#6D217F #7F2162 #7F2133
triadic
#7F2162 #627F21 #21627F
tetradic
#7F2162 #7F6D21 #217F3E #21337F
square
#7F2162 #7F6D21 #217F3E #21337F
split-complementary
#7F2162 #337F21 #217F6D
monochromatic
#1E0817 #4E143D #7F2162 #B02E87 #D04AA7

Accessibility & contrast

On white

9.14
#7F2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2162
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2162#FFFFFF#000000##FFFFFF
##7F21621.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2162;
/* rgb */ color: rgb(127, 33, 98);
/* oklch */ color: oklch(42.1% 0.146 342.9);
Tailwind
colors: {
  custom: {
    50: '#a7658e',
    500: '#7f2162',
    950: '#000000',
  },
}
SCSS
$custom: #7f2162;
$custom-light: #a7658e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2162",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 318.511,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42105,
    "c": 0.14615,
    "h": 342.9
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#7F2162
secondary
#4AB26A
accent
#E27646
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7F2162

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

Preview Lab → · Contrast checker → · Palette generator →

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