#7F1071#7F1071

#7F1071 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.173 H 334.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#7F1071
RGBrgb(127, 16, 113)
HSLhsl(308, 78%, 28%)
HSVhsv(308, 87%, 50%)
CMYKcmyk(0%, 87.4%, 11%, 50.2%)
CIE-LABlab(29.60, 53.70, -27.27)
CIE-LCHlch(29.60, 60.23, 333.07°)
OKLaboklab(41.64% 0.1565 -0.0748)
OKLCHoklch(41.64% 0.173 334.5)
XYZxyz(11.9185, 6.0760, 16.1647)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1071 #107F1E
analogous
#56107F #7F1071 #7F1039
triadic
#7F1071 #717F10 #10717F
tetradic
#7F1071 #7F5610 #107F1E #10397F
square
#7F1071 #7F5610 #107F1E #10397F
split-complementary
#7F1071 #397F10 #107F56
monochromatic
#1B0318 #490941 #7F1071 #B517A1 #E426CC

Accessibility & contrast

On white

9.48
#7F1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7F1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1071
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1071#FFFFFF#000000##FFFFFF
##7F10711.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3C73
Deuteranopia (green-blind)
#3C4B6F
Tritanopia (blue-blind)
#861D42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1071;
/* rgb */ color: rgb(127, 16, 113);
/* oklch */ color: oklch(41.6% 0.173 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8609a',
    500: '#7f1071',
    950: '#000000',
  },
}
SCSS
$custom: #7f1071;
$custom-light: #a8609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1071",
  "rgb": {
    "r": 127,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 307.568,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41635,
    "c": 0.17348,
    "h": 334.5
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#7F1071
secondary
#36B546
accent
#F44C34
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7F1071

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

Preview Lab → · Contrast checker → · Palette generator →

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