#7E1072#7E1072

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

Color values

HEX#7E1072
RGBrgb(126, 16, 114)
HSLhsl(307, 77%, 28%)
HSVhsv(307, 87%, 49%)
CMYKcmyk(0%, 87.3%, 9.5%, 50.6%)
CIE-LABlab(29.47, 53.64, -28.14)
CIE-LCHlch(29.47, 60.57, 332.32°)
OKLaboklab(41.52% 0.1555 -0.0773)
OKLCHoklch(41.52% 0.174 333.6)
XYZxyz(11.8269, 6.0222, 16.4558)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1072 #107E1C
analogous
#53107E #7E1072 #7E103B
triadic
#7E1072 #727E10 #10727E
tetradic
#7E1072 #7E5310 #107E1C #103B7E
square
#7E1072 #7E5310 #107E1C #103B7E
split-complementary
#7E1072 #3B7E10 #107E53
monochromatic
#1B0319 #480941 #7E1072 #B417A3 #E325CF

Accessibility & contrast

On white

9.53
#7E1072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1072
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1072#FFFFFF#000000##FFFFFF
##7E10721.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093C74
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#841E43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1072;
/* rgb */ color: rgb(126, 16, 114);
/* oklch */ color: oklch(41.5% 0.174 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7609b',
    500: '#7e1072',
    950: '#000000',
  },
}
SCSS
$custom: #7e1072;
$custom-light: #a7609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1072",
  "rgb": {
    "r": 126,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 306.545,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41521,
    "c": 0.1737,
    "h": 333.6
  },
  "luminance": 0.06021
}

Semantic roles & 50–950 ramp

primary
#7E1072
secondary
#36B443
accent
#F44934
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7E1072

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

Preview Lab → · Contrast checker → · Palette generator →

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