#7F1477#7F1477

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

Color values

HEX#7F1477
RGBrgb(127, 20, 119)
HSLhsl(304, 73%, 29%)
HSVhsv(304, 84%, 50%)
CMYKcmyk(0%, 84.3%, 6.3%, 50.2%)
CIE-LABlab(30.27, 53.70, -30.04)
CIE-LCHlch(30.27, 61.53, 330.77°)
OKLaboklab(42.22% 0.1538 -0.0828)
OKLCHoklch(42.22% 0.175 331.7)
XYZxyz(12.3324, 6.3453, 18.0244)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1477 #147F1C
analogous
#52147F #7F1477 #7F1442
triadic
#7F1477 #777F14 #14777F
tetradic
#7F1477 #7F5214 #147F1C #14427F
square
#7F1477 #7F5214 #147F1C #14427F
split-complementary
#7F1477 #427F14 #147F52
monochromatic
#1A0419 #4A0C45 #7F1477 #B41CA9 #DE2FD1

Accessibility & contrast

On white

9.26
#7F1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1477
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1477#FFFFFF#000000##FFFFFF
##7F14771.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063E7A
Deuteranopia (green-blind)
#3A4C75
Tritanopia (blue-blind)
#852346
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1477;
/* rgb */ color: rgb(127, 20, 119);
/* oklch */ color: oklch(42.2% 0.175 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8629e',
    500: '#7f1477',
    950: '#000000',
  },
}
SCSS
$custom: #7f1477;
$custom-light: #a8629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1477",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 304.486,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42219,
    "c": 0.17474,
    "h": 331.7
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#7F1477
secondary
#3BB444
accent
#EF4638
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1477

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

Preview Lab → · Contrast checker → · Palette generator →

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