#7F177A#7F177A

#7F177A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.174 H 330.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7F177A
RGBrgb(127, 23, 122)
HSLhsl(303, 69%, 29%)
HSVhsv(303, 82%, 50%)
CMYKcmyk(0%, 81.9%, 3.9%, 50.2%)
CIE-LABlab(30.71, 53.40, -31.23)
CIE-LCHlch(30.71, 61.86, 329.68°)
OKLaboklab(42.59% 0.1516 -0.0863)
OKLCHoklch(42.59% 0.174 330.3)
XYZxyz(12.5716, 6.5310, 19.0071)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F177A #177F1C
analogous
#50177F #7F177A #7F1746
triadic
#7F177A #7A7F17 #177A7F
tetradic
#7F177A #7F5017 #177F1C #17467F
square
#7F177A #7F5017 #177F1C #17467F
split-complementary
#7F177A #467F17 #177F50
monochromatic
#1A0519 #4B0E48 #7F177A #B320AC #DB36D3

Accessibility & contrast

On white

9.11
#7F177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F177A
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F177A#FFFFFF#000000##FFFFFF
##7F177A1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7D
Deuteranopia (green-blind)
#394D78
Tritanopia (blue-blind)
#842749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f177a;
/* rgb */ color: rgb(127, 23, 122);
/* oklch */ color: oklch(42.6% 0.174 330.3);
Tailwind
colors: {
  custom: {
    50: '#a863a1',
    500: '#7f177a',
    950: '#000000',
  },
}
SCSS
$custom: #7f177a;
$custom-light: #a863a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f177a",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 302.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42594,
    "c": 0.17442,
    "h": 330.3
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#7F177A
secondary
#3EB444
accent
#EC443C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F177A

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

Preview Lab → · Contrast checker → · Palette generator →

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