#7F176F#7F176F

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

Color values

HEX#7F176F
RGBrgb(127, 23, 111)
HSLhsl(309, 69%, 29%)
HSVhsv(309, 82%, 50%)
CMYKcmyk(0%, 81.9%, 12.6%, 50.2%)
CIE-LABlab(30.09, 51.66, -25.22)
CIE-LCHlch(30.09, 57.49, 333.97°)
OKLaboklab(41.95% 0.1513 -0.069)
OKLCHoklch(41.95% 0.166 335.5)
XYZxyz(11.9282, 6.2736, 15.6186)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F176F #177F27
analogous
#5B177F #7F176F #7F173B
triadic
#7F176F #6F7F17 #176F7F
tetradic
#7F176F #7F5B17 #177F27 #173B7F
square
#7F176F #7F5B17 #177F27 #173B7F
split-complementary
#7F176F #3B7F17 #177F5B
monochromatic
#1A0517 #4B0E42 #7F176F #B3209C #DB36C1

Accessibility & contrast

On white

9.31
#7F176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F176F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F176F#FFFFFF#000000##FFFFFF
##7F176F1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f176f;
/* rgb */ color: rgb(127, 23, 111);
/* oklch */ color: oklch(41.9% 0.166 335.5);
Tailwind
colors: {
  custom: {
    50: '#a86298',
    500: '#7f176f',
    950: '#000000',
  },
}
SCSS
$custom: #7f176f;
$custom-light: #a86298;
$custom-dark: #000000;
JSON
{
  "hex": "#7f176f",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 309.231,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41948,
    "c": 0.16626,
    "h": 335.5
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#7F176F
secondary
#3EB450
accent
#EC573C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F176F

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

Preview Lab → · Contrast checker → · Palette generator →

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