#7F1179#7F1179

#7F1179 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.179 H 330.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7F1179
RGBrgb(127, 17, 121)
HSLhsl(303, 76%, 28%)
HSVhsv(303, 87%, 50%)
CMYKcmyk(0%, 86.6%, 4.7%, 50.2%)
CIE-LABlab(30.14, 54.72, -31.51)
CIE-LCHlch(30.14, 63.15, 330.07°)
OKLaboklab(42.17% 0.1559 -0.0871)
OKLCHoklch(42.17% 0.179 330.8)
XYZxyz(12.4040, 6.2944, 18.6471)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1179 #117F17
analogous
#4E117F #7F1179 #7F1142
triadic
#7F1179 #797F11 #11797F
tetradic
#7F1179 #7F4E11 #117F17 #11427F
square
#7F1179 #7F4E11 #117F17 #11427F
split-complementary
#7F1179 #427F11 #117F4E
monochromatic
#1B041A #490A46 #7F1179 #B518AC #E228D8

Accessibility & contrast

On white

9.30
#7F1179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F1179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1179
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1179#FFFFFF#000000##FFFFFF
##7F11791.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#384C77
Tritanopia (blue-blind)
#842347
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1179;
/* rgb */ color: rgb(127, 17, 121);
/* oklch */ color: oklch(42.2% 0.179 330.8);
Tailwind
colors: {
  custom: {
    50: '#a861a0',
    500: '#7f1179',
    950: '#000000',
  },
}
SCSS
$custom: #7f1179;
$custom-light: #a861a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1179",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 121
  },
  "hsl": {
    "h": 303.273,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42169,
    "c": 0.17854,
    "h": 330.8
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#7F1179
secondary
#37B53E
accent
#F33F35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1179

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

Preview Lab → · Contrast checker → · Palette generator →

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