#7E1271#7E1271

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

Color values

HEX#7E1271
RGBrgb(126, 18, 113)
HSLhsl(307, 75%, 28%)
HSVhsv(307, 86%, 49%)
CMYKcmyk(0%, 85.7%, 10.3%, 50.6%)
CIE-LABlab(29.57, 53.03, -27.34)
CIE-LCHlch(29.57, 59.66, 332.72°)
OKLaboklab(41.57% 0.1542 -0.0751)
OKLCHoklch(41.57% 0.171 334)
XYZxyz(11.8013, 6.0616, 16.1681)
Luminance0.0606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1271 #127E1F
analogous
#55127E #7E1271 #7E123B
triadic
#7E1271 #717E12 #12717E
tetradic
#7E1271 #7E5512 #127E1F #123B7E
square
#7E1271 #7E5512 #127E1F #123B7E
split-complementary
#7E1271 #3B7E12 #127E55
monochromatic
#1B0418 #480A41 #7E1271 #B41AA1 #E12ACB

Accessibility & contrast

On white

9.49
#7E1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1271
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1271#FFFFFF#000000##FFFFFF
##7E12711.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#841F43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1271;
/* rgb */ color: rgb(126, 18, 113);
/* oklch */ color: oklch(41.6% 0.171 334.0);
Tailwind
colors: {
  custom: {
    50: '#a7609a',
    500: '#7e1271',
    950: '#000000',
  },
}
SCSS
$custom: #7e1271;
$custom-light: #a7609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1271",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 307.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.17147,
    "h": 334
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#7E1271
secondary
#38B447
accent
#F24D36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1271

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

Preview Lab → · Contrast checker → · Palette generator →

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