#7F1271#7F1271

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

Color values

HEX#7F1271
RGBrgb(127, 18, 113)
HSLhsl(308, 75%, 28%)
HSVhsv(308, 86%, 50%)
CMYKcmyk(0%, 85.8%, 11%, 50.2%)
CIE-LABlab(29.76, 53.25, -27.03)
CIE-LCHlch(29.76, 59.72, 333.09°)
OKLaboklab(41.75% 0.1552 -0.0741)
OKLCHoklch(41.75% 0.172 334.5)
XYZxyz(11.9495, 6.1380, 16.1750)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1271 #127F20
analogous
#56127F #7F1271 #7F123B
triadic
#7F1271 #717F12 #12717F
tetradic
#7F1271 #7F5612 #127F20 #123B7F
square
#7F1271 #7F5612 #127F20 #123B7F
split-complementary
#7F1271 #3B7F12 #127F56
monochromatic
#1B0418 #490A41 #7F1271 #B51AA1 #E12BC9

Accessibility & contrast

On white

9.43
#7F1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1271
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1271#FFFFFF#000000##FFFFFF
##7F12711.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C73
Deuteranopia (green-blind)
#3C4C6F
Tritanopia (blue-blind)
#861F43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1271;
/* rgb */ color: rgb(127, 18, 113);
/* oklch */ color: oklch(41.7% 0.172 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8619a',
    500: '#7f1271',
    950: '#000000',
  },
}
SCSS
$custom: #7f1271;
$custom-light: #a8619a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1271",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 307.706,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41745,
    "c": 0.17199,
    "h": 334.5
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#7F1271
secondary
#38B548
accent
#F24E36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1271

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

Preview Lab → · Contrast checker → · Palette generator →

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