#7E2071#7E2071

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

Color values

HEX#7E2071
RGBrgb(126, 32, 113)
HSLhsl(308, 59%, 31%)
HSVhsv(308, 75%, 49%)
CMYKcmyk(0%, 74.6%, 10.3%, 50.6%)
CIE-LABlab(31.02, 48.85, -25.05)
CIE-LCHlch(31.02, 54.89, 332.85°)
OKLaboklab(42.62% 0.1418 -0.0685)
OKLCHoklch(42.62% 0.158 334.2)
XYZxyz(12.1014, 6.6619, 16.2681)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2071 #207E2D
analogous
#5C207E #7E2071 #7E2042
triadic
#7E2071 #717E20 #20717E
tetradic
#7E2071 #7E5C20 #207E2D #20427E
square
#7E2071 #7E5C20 #207E2D #20427E
split-complementary
#7E2071 #427E20 #207E5C
monochromatic
#1C0719 #4D1445 #7E2071 #AF2C9D #D048BE

Accessibility & contrast

On white

9.00
#7E2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2071
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2071#FFFFFF#000000##FFFFFF
##7E20711.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#842846
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2071;
/* rgb */ color: rgb(126, 32, 113);
/* oklch */ color: oklch(42.6% 0.158 334.2);
Tailwind
colors: {
  custom: {
    50: '#a7659a',
    500: '#7e2071',
    950: '#000000',
  },
}
SCSS
$custom: #7e2071;
$custom-light: #a7659a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2071",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 308.298,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.15754,
    "h": 334.2
  },
  "luminance": 0.06661
}

Semantic roles & 50–950 ramp

primary
#7E2071
secondary
#49B157
accent
#E35B45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2071

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

Preview Lab → · Contrast checker → · Palette generator →

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