#7F1D78#7F1D78

#7F1D78 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.167 H 331.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7F1D78
RGBrgb(127, 29, 120)
HSLhsl(304, 63%, 31%)
HSVhsv(304, 77%, 50%)
CMYKcmyk(0%, 77.2%, 5.5%, 50.2%)
CIE-LABlab(31.23, 51.26, -29.16)
CIE-LCHlch(31.23, 58.98, 330.37°)
OKLaboklab(42.92% 0.1463 -0.0803)
OKLCHoklch(42.92% 0.167 331.2)
XYZxyz(12.5819, 6.7478, 18.4055)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D78 #1D7F24
analogous
#551D7F #7F1D78 #7F1D47
triadic
#7F1D78 #787F1D #1D787F
tetradic
#7F1D78 #7F551D #1D7F24 #1D477F
square
#7F1D78 #7F551D #1D7F24 #1D477F
split-complementary
#7F1D78 #477F1D #1D7F55
monochromatic
#1B061A #4D1249 #7F1D78 #B128A7 #D442CA

Accessibility & contrast

On white

8.94
#7F1D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F1D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D78
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D78#FFFFFF#000000##FFFFFF
##7F1D781.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14417A
Deuteranopia (green-blind)
#3C4E76
Tritanopia (blue-blind)
#842949
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1d78;
/* rgb */ color: rgb(127, 29, 120);
/* oklch */ color: oklch(42.9% 0.167 331.2);
Tailwind
colors: {
  custom: {
    50: '#a7659f',
    500: '#7f1d78',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d78;
$custom-light: #a7659f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d78",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 304.286,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42922,
    "c": 0.16694,
    "h": 331.2
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#7F1D78
secondary
#45B24D
accent
#E64E42
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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