#7F1371#7F1371

#7F1371 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.171 H 334.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7F1371
RGBrgb(127, 19, 113)
HSLhsl(308, 74%, 29%)
HSVhsv(308, 85%, 50%)
CMYKcmyk(0%, 85%, 11%, 50.2%)
CIE-LABlab(29.84, 53.01, -26.90)
CIE-LCHlch(29.84, 59.44, 333.09°)
OKLaboklab(41.8% 0.1545 -0.0738)
OKLCHoklch(41.8% 0.171 334.5)
XYZxyz(11.9661, 6.1711, 16.1805)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1371 #137F21
analogous
#57137F #7F1371 #7F133B
triadic
#7F1371 #717F13 #13717F
tetradic
#7F1371 #7F5713 #137F21 #133B7F
square
#7F1371 #7F5713 #137F21 #133B7F
split-complementary
#7F1371 #3B7F13 #137F57
monochromatic
#1B0418 #4A0B42 #7F1371 #B41BA0 #E02DC8

Accessibility & contrast

On white

9.40
#7F1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1371
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1371#FFFFFF#000000##FFFFFF
##7F13711.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#3C4C6F
Tritanopia (blue-blind)
#851F43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1371;
/* rgb */ color: rgb(127, 19, 113);
/* oklch */ color: oklch(41.8% 0.171 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8619a',
    500: '#7f1371',
    950: '#000000',
  },
}
SCSS
$custom: #7f1371;
$custom-light: #a8619a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1371",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 307.778,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41803,
    "c": 0.17119,
    "h": 334.5
  },
  "luminance": 0.0617
}

Semantic roles & 50–950 ramp

primary
#7F1371
secondary
#39B449
accent
#F14F37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1371

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

Preview Lab → · Contrast checker → · Palette generator →

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