#7F1171#7F1171

#7F1171 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.173 H 334.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#7F1171
RGBrgb(127, 17, 113)
HSLhsl(308, 76%, 28%)
HSVhsv(308, 87%, 50%)
CMYKcmyk(0%, 86.6%, 11%, 50.2%)
CIE-LABlab(29.68, 53.48, -27.15)
CIE-LCHlch(29.68, 59.98, 333.08°)
OKLaboklab(41.69% 0.1559 -0.0745)
OKLCHoklch(41.69% 0.173 334.5)
XYZxyz(11.9336, 6.1063, 16.1697)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1171 #117F1F
analogous
#56117F #7F1171 #7F113A
triadic
#7F1171 #717F11 #11717F
tetradic
#7F1171 #7F5611 #117F1F #113A7F
square
#7F1171 #7F5611 #117F1F #113A7F
split-complementary
#7F1171 #3A7F11 #117F56
monochromatic
#1B0418 #490A41 #7F1171 #B518A1 #E228CB

Accessibility & contrast

On white

9.46
#7F1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7F1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1171
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1171#FFFFFF#000000##FFFFFF
##7F11711.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C73
Deuteranopia (green-blind)
#3C4B6F
Tritanopia (blue-blind)
#861E42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1171;
/* rgb */ color: rgb(127, 17, 113);
/* oklch */ color: oklch(41.7% 0.173 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8609a',
    500: '#7f1171',
    950: '#000000',
  },
}
SCSS
$custom: #7f1171;
$custom-light: #a8609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1171",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 307.636,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41689,
    "c": 0.17275,
    "h": 334.5
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#7F1171
secondary
#37B547
accent
#F34D35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1171

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

Preview Lab → · Contrast checker → · Palette generator →

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