#7E1071#7E1071

#7E1071 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.173 H 334.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#7E1071
RGBrgb(126, 16, 113)
HSLhsl(307, 77%, 28%)
HSVhsv(307, 87%, 49%)
CMYKcmyk(0%, 87.3%, 10.3%, 50.6%)
CIE-LABlab(29.41, 53.48, -27.59)
CIE-LCHlch(29.41, 60.18, 332.71°)
OKLaboklab(41.46% 0.1555 -0.0758)
OKLCHoklch(41.46% 0.173 334)
XYZxyz(11.7702, 5.9995, 16.1577)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1071 #107E1D
analogous
#54107E #7E1071 #7E103A
triadic
#7E1071 #717E10 #10717E
tetradic
#7E1071 #7E5410 #107E1D #103A7E
square
#7E1071 #7E5410 #107E1D #103A7E
split-complementary
#7E1071 #3A7E10 #107E54
monochromatic
#1B0318 #480940 #7E1071 #B417A2 #E325CD

Accessibility & contrast

On white

9.55
#7E1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1071
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1071#FFFFFF#000000##FFFFFF
##7E10711.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#841E42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1071;
/* rgb */ color: rgb(126, 16, 113);
/* oklch */ color: oklch(41.5% 0.173 334.0);
Tailwind
colors: {
  custom: {
    50: '#a7609a',
    500: '#7e1071',
    950: '#000000',
  },
}
SCSS
$custom: #7e1071;
$custom-light: #a7609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1071",
  "rgb": {
    "r": 126,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 307.091,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41462,
    "c": 0.17298,
    "h": 334
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#7E1071
secondary
#36B444
accent
#F44B34
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7E1071

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

Preview Lab → · Contrast checker → · Palette generator →

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