#7F1966#7F1966

#7F1966 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.6% C 0.158 H 340.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7F1966
RGBrgb(127, 25, 102)
HSLhsl(315, 67%, 30%)
HSVhsv(315, 80%, 50%)
CMYKcmyk(0%, 80.3%, 19.7%, 50.2%)
CIE-LABlab(29.83, 49.74, -19.85)
CIE-LCHlch(29.83, 53.55, 338.25°)
OKLaboklab(41.61% 0.1486 -0.0536)
OKLCHoklch(41.61% 0.158 340.2)
XYZxyz(11.4986, 6.1678, 13.1527)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1966 #197F32
analogous
#65197F #7F1966 #7F1933
triadic
#7F1966 #667F19 #19667F
tetradic
#7F1966 #7F6519 #197F32 #19337F
square
#7F1966 #7F6519 #197F32 #19337F
split-complementary
#7F1966 #337F19 #197F65
monochromatic
#1A0515 #4C0F3D #7F1966 #B2238F #D83AB1

Accessibility & contrast

On white

9.40
#7F1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1966
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1966#FFFFFF#000000##FFFFFF
##7F19661.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213C68
Deuteranopia (green-blind)
#434C64
Tritanopia (blue-blind)
#871D3E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1966;
/* rgb */ color: rgb(127, 25, 102);
/* oklch */ color: oklch(41.6% 0.158 340.2);
Tailwind
colors: {
  custom: {
    50: '#a86292',
    500: '#7f1966',
    950: '#000000',
  },
}
SCSS
$custom: #7f1966;
$custom-light: #a86292;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1966",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 314.706,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4161,
    "c": 0.158,
    "h": 340.2
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#7F1966
secondary
#41B35D
accent
#EA683E
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060D
muted
#7F7A7D

Preview Lab

Preview with #7F1966

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

Preview Lab → · Contrast checker → · Palette generator →

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