#7F176E#7F176E

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

Color values

HEX#7F176E
RGBrgb(127, 23, 110)
HSLhsl(310, 69%, 29%)
HSVhsv(310, 82%, 50%)
CMYKcmyk(0%, 81.9%, 13.4%, 50.2%)
CIE-LABlab(30.04, 51.51, -24.67)
CIE-LCHlch(30.04, 57.11, 334.41°)
OKLaboklab(41.89% 0.1512 -0.0674)
OKLCHoklch(41.89% 0.166 336)
XYZxyz(11.8735, 6.2517, 15.3302)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F176E #177F28
analogous
#5C177F #7F176E #7F173A
triadic
#7F176E #6E7F17 #176E7F
tetradic
#7F176E #7F5C17 #177F28 #173A7F
square
#7F176E #7F5C17 #177F28 #173A7F
split-complementary
#7F176E #3A7F17 #177F5C
monochromatic
#1A0516 #4B0E41 #7F176E #B3209B #DB36C0

Accessibility & contrast

On white

9.33
#7F176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F176E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F176E#FFFFFF#000000##FFFFFF
##7F176E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183D70
Deuteranopia (green-blind)
#3F4C6C
Tritanopia (blue-blind)
#862042
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f176e;
/* rgb */ color: rgb(127, 23, 110);
/* oklch */ color: oklch(41.9% 0.166 336.0);
Tailwind
colors: {
  custom: {
    50: '#a86298',
    500: '#7f176e',
    950: '#000000',
  },
}
SCSS
$custom: #7f176e;
$custom-light: #a86298;
$custom-dark: #000000;
JSON
{
  "hex": "#7f176e",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 309.808,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41893,
    "c": 0.16554,
    "h": 336
  },
  "luminance": 0.06251
}

Semantic roles & 50–950 ramp

primary
#7F176E
secondary
#3EB451
accent
#EC593C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F176E

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

Preview Lab → · Contrast checker → · Palette generator →

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