#7F3166#7F3166

#7F3166 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.1% C 0.126 H 342.0°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7F3166
RGBrgb(127, 49, 102)
HSLhsl(319, 44%, 35%)
HSVhsv(319, 61%, 50%)
CMYKcmyk(0%, 61.4%, 19.7%, 50.2%)
CIE-LABlab(33.28, 40.13, -14.52)
CIE-LCHlch(33.28, 42.67, 340.11°)
OKLaboklab(44.13% 0.1195 -0.0388)
OKLCHoklch(44.13% 0.126 342)
XYZxyz(12.2493, 7.6690, 13.4029)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3166 #317F4A
analogous
#71317F #7F3166 #7F313F
triadic
#7F3166 #667F31 #31667F
tetradic
#7F3166 #7F7131 #317F4A #313F7F
square
#7F3166 #7F7131 #317F4A #313F7F
split-complementary
#7F3166 #3F7F31 #317F71
monochromatic
#270F1F #532043 #7F3166 #AB4289 #C466A6

Accessibility & contrast

On white

8.29
#7F3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3166
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3166#FFFFFF#000000##FFFFFF
##7F31661.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364668
Deuteranopia (green-blind)
#4D5364
Tritanopia (blue-blind)
#873247
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f3166;
/* rgb */ color: rgb(127, 49, 102);
/* oklch */ color: oklch(44.1% 0.126 342.0);
Tailwind
colors: {
  custom: {
    50: '#a76e91',
    500: '#7f3166',
    950: '#000000',
  },
}
SCSS
$custom: #7f3166;
$custom-light: #a76e91;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3166",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 319.231,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44129,
    "c": 0.12568,
    "h": 342
  },
  "luminance": 0.07668
}

Semantic roles & 50–950 ramp

primary
#7F3166
secondary
#60AB78
accent
#D47D54
background
#FAF6F8
surface
#F4ECF0
border
#CEC7CB
text
#10070D
muted
#7F7A7D

Preview Lab

Preview with #7F3166

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

Preview Lab → · Contrast checker → · Palette generator →

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