#7F1178#7F1178

#7F1178 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.178 H 331.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#7F1178
RGBrgb(127, 17, 120)
HSLhsl(304, 76%, 28%)
HSVhsv(304, 87%, 50%)
CMYKcmyk(0%, 86.6%, 5.5%, 50.2%)
CIE-LABlab(30.08, 54.56, -30.97)
CIE-LCHlch(30.08, 62.74, 330.42°)
OKLaboklab(42.11% 0.1559 -0.0855)
OKLCHoklch(42.11% 0.178 331.2)
XYZxyz(12.3430, 6.2700, 18.3258)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1178 #117F18
analogous
#4F117F #7F1178 #7F1141
triadic
#7F1178 #787F11 #11787F
tetradic
#7F1178 #7F4F11 #117F18 #11417F
square
#7F1178 #7F4F11 #117F18 #11417F
split-complementary
#7F1178 #417F11 #117F4F
monochromatic
#1B041A #490A45 #7F1178 #B518AB #E228D6

Accessibility & contrast

On white

9.32
#7F1178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1178
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1178#FFFFFF#000000##FFFFFF
##7F11781.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#384C76
Tritanopia (blue-blind)
#842246
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1178;
/* rgb */ color: rgb(127, 17, 120);
/* oklch */ color: oklch(42.1% 0.178 331.2);
Tailwind
colors: {
  custom: {
    50: '#a8619f',
    500: '#7f1178',
    950: '#000000',
  },
}
SCSS
$custom: #7f1178;
$custom-light: #a8619f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1178",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 120
  },
  "hsl": {
    "h": 303.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42107,
    "c": 0.1778,
    "h": 331.2
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#7F1178
secondary
#37B53F
accent
#F34135
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1178

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

Preview Lab → · Contrast checker → · Palette generator →

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