#7E2072#7E2072

#7E2072 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.158 H 333.7°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7E2072
RGBrgb(126, 32, 114)
HSLhsl(308, 59%, 31%)
HSVhsv(308, 75%, 49%)
CMYKcmyk(0%, 74.6%, 9.5%, 50.6%)
CIE-LABlab(31.08, 49.01, -25.60)
CIE-LCHlch(31.08, 55.29, 332.42°)
OKLaboklab(42.67% 0.1419 -0.0701)
OKLCHoklch(42.67% 0.158 333.7)
XYZxyz(12.1580, 6.6846, 16.5662)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2072 #207E2C
analogous
#5B207E #7E2072 #7E2043
triadic
#7E2072 #727E20 #20727E
tetradic
#7E2072 #7E5B20 #207E2C #20437E
square
#7E2072 #7E5B20 #207E2C #20437E
split-complementary
#7E2072 #437E20 #207E5B
monochromatic
#1C071A #4D1446 #7E2072 #AF2C9E #D048BF

Accessibility & contrast

On white

8.99
#7E2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2072
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2072#FFFFFF#000000##FFFFFF
##7E20721.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4074
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#842946
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2072;
/* rgb */ color: rgb(126, 32, 114);
/* oklch */ color: oklch(42.7% 0.158 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7669b',
    500: '#7e2072',
    950: '#000000',
  },
}
SCSS
$custom: #7e2072;
$custom-light: #a7669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2072",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 307.66,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42674,
    "c": 0.15832,
    "h": 333.7
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#7E2072
secondary
#49B156
accent
#E35945
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2072

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

Preview Lab → · Contrast checker → · Palette generator →

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