#7F1177#7F1177

#7F1177 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.177 H 331.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7F1177
RGBrgb(127, 17, 119)
HSLhsl(304, 76%, 28%)
HSVhsv(304, 87%, 50%)
CMYKcmyk(0%, 86.6%, 6.3%, 50.2%)
CIE-LABlab(30.02, 54.40, -30.43)
CIE-LCHlch(30.02, 62.34, 330.78°)
OKLaboklab(42.05% 0.1559 -0.0839)
OKLCHoklch(42.05% 0.177 331.7)
XYZxyz(12.2826, 6.2459, 18.0079)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1177 #117F19
analogous
#50117F #7F1177 #7F1140
triadic
#7F1177 #777F11 #11777F
tetradic
#7F1177 #7F5011 #117F19 #11407F
square
#7F1177 #7F5011 #117F19 #11407F
split-complementary
#7F1177 #407F11 #117F50
monochromatic
#1B0419 #490A44 #7F1177 #B518AA #E228D5

Accessibility & contrast

On white

9.34
#7F1177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1177
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1177#FFFFFF#000000##FFFFFF
##7F11771.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013D7A
Deuteranopia (green-blind)
#394C75
Tritanopia (blue-blind)
#852246
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1177;
/* rgb */ color: rgb(127, 17, 119);
/* oklch */ color: oklch(42.0% 0.177 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8619e',
    500: '#7f1177',
    950: '#000000',
  },
}
SCSS
$custom: #7f1177;
$custom-light: #a8619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1177",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 119
  },
  "hsl": {
    "h": 304.364,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42046,
    "c": 0.17707,
    "h": 331.7
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#7F1177
secondary
#37B540
accent
#F34335
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1177

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

Preview Lab → · Contrast checker → · Palette generator →

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