#7F1A71#7F1A71

#7F1A71 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.165 H 334.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7F1A71
RGBrgb(127, 26, 113)
HSLhsl(308, 66%, 30%)
HSVhsv(308, 80%, 50%)
CMYKcmyk(0%, 79.5%, 11%, 50.2%)
CIE-LABlab(30.51, 51.09, -25.85)
CIE-LCHlch(30.51, 57.25, 333.16°)
OKLaboklab(42.28% 0.1488 -0.0708)
OKLCHoklch(42.28% 0.165 334.6)
XYZxyz(12.1026, 6.4442, 16.2260)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A71 #1A7F28
analogous
#5B1A7F #7F1A71 #7F1A3E
triadic
#7F1A71 #717F1A #1A717F
tetradic
#7F1A71 #7F5B1A #1A7F28 #1A3E7F
square
#7F1A71 #7F5B1A #1A7F28 #1A3E7F
split-complementary
#7F1A71 #3E7F1A #1A7F5B
monochromatic
#190517 #4C1044 #7F1A71 #B2249E #D73CC2

Accessibility & contrast

On white

9.18
#7F1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A71
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A71#FFFFFF#000000##FFFFFF
##7F1A711.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#852444
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1a71;
/* rgb */ color: rgb(127, 26, 113);
/* oklch */ color: oklch(42.3% 0.165 334.6);
Tailwind
colors: {
  custom: {
    50: '#a8639a',
    500: '#7f1a71',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a71;
$custom-light: #a8639a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a71",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 308.317,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.4228,
    "c": 0.16478,
    "h": 334.6
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#7F1A71
secondary
#42B352
accent
#E9563F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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