#7F1172#7F1172

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

Color values

HEX#7F1172
RGBrgb(127, 17, 114)
HSLhsl(307, 76%, 28%)
HSVhsv(307, 87%, 50%)
CMYKcmyk(0%, 86.6%, 10.2%, 50.2%)
CIE-LABlab(29.74, 53.63, -27.70)
CIE-LCHlch(29.74, 60.36, 332.68°)
OKLaboklab(41.75% 0.1559 -0.0761)
OKLCHoklch(41.75% 0.173 334)
XYZxyz(11.9902, 6.1289, 16.4678)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1172 #117F1E
analogous
#55117F #7F1172 #7F113B
triadic
#7F1172 #727F11 #11727F
tetradic
#7F1172 #7F5511 #117F1E #113B7F
square
#7F1172 #7F5511 #117F1E #113B7F
split-complementary
#7F1172 #3B7F11 #117F55
monochromatic
#1B0418 #490A42 #7F1172 #B518A2 #E228CC

Accessibility & contrast

On white

9.44
#7F1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1172
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1172#FFFFFF#000000##FFFFFF
##7F11721.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#851F43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1172;
/* rgb */ color: rgb(127, 17, 114);
/* oklch */ color: oklch(41.7% 0.173 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8609b',
    500: '#7f1172',
    950: '#000000',
  },
}
SCSS
$custom: #7f1172;
$custom-light: #a8609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1172",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 307.091,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41747,
    "c": 0.17346,
    "h": 334
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#7F1172
secondary
#37B546
accent
#F34B35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1172

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

Preview Lab → · Contrast checker → · Palette generator →

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