#7F166F#7F166F

#7F166F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.167 H 335.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7F166F
RGBrgb(127, 22, 111)
HSLhsl(309, 70%, 29%)
HSVhsv(309, 83%, 50%)
CMYKcmyk(0%, 82.7%, 12.6%, 50.2%)
CIE-LABlab(30.00, 51.93, -25.37)
CIE-LCHlch(30.00, 57.80, 333.96°)
OKLaboklab(41.88% 0.1521 -0.0694)
OKLCHoklch(41.88% 0.167 335.5)
XYZxyz(11.9087, 6.2347, 15.6121)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F166F #167F26
analogous
#5B167F #7F166F #7F163B
triadic
#7F166F #6F7F16 #166F7F
tetradic
#7F166F #7F5B16 #167F26 #163B7F
square
#7F166F #7F5B16 #167F26 #163B7F
split-complementary
#7F166F #3B7F16 #167F5B
monochromatic
#1A0517 #4B0D41 #7F166F #B31F9D #DC34C2

Accessibility & contrast

On white

9.35
#7F166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F166F
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F166F#FFFFFF#000000##FFFFFF
##7F166F1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#862042
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f166f;
/* rgb */ color: rgb(127, 22, 111);
/* oklch */ color: oklch(41.9% 0.167 335.5);
Tailwind
colors: {
  custom: {
    50: '#a86298',
    500: '#7f166f',
    950: '#000000',
  },
}
SCSS
$custom: #7f166f;
$custom-light: #a86298;
$custom-dark: #000000;
JSON
{
  "hex": "#7f166f",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 309.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4188,
    "c": 0.16718,
    "h": 335.5
  },
  "luminance": 0.06234
}

Semantic roles & 50–950 ramp

primary
#7F166F
secondary
#3DB44F
accent
#ED563B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F166F

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

Preview Lab → · Contrast checker → · Palette generator →

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