#7E2E84#7E2E84

#7E2E84 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.155 H 324.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7E2E84
RGBrgb(126, 46, 132)
HSLhsl(296, 48%, 35%)
HSVhsv(296, 65%, 52%)
CMYKcmyk(4.5%, 65.2%, 0%, 48.2%)
CIE-LABlab(34.10, 46.50, -32.14)
CIE-LCHlch(34.10, 56.52, 325.35°)
OKLaboklab(45.18% 0.1267 -0.0891)
OKLCHoklch(45.18% 0.155 324.9)
XYZxyz(13.7457, 8.0564, 22.6563)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E84 #34842E
analogous
#532E84 #7E2E84 #842E5F
triadic
#7E2E84 #847E2E #2E847E
tetradic
#7E2E84 #84532E #34842E #2E5F84
square
#7E2E84 #84532E #34842E #2E5F84
split-complementary
#7E2E84 #5F842E #2E8453
monochromatic
#270E29 #531E57 #7E2E84 #A93EB1 #C264C9

Accessibility & contrast

On white

8.04
#7E2E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E84
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E84#FFFFFF#000000##FFFFFF
##7E2E841.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4A87
Deuteranopia (green-blind)
#3E5482
Tritanopia (blue-blind)
#813B55
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2e84;
/* rgb */ color: rgb(126, 46, 132);
/* oklch */ color: oklch(45.2% 0.155 324.9);
Tailwind
colors: {
  custom: {
    50: '#a66da8',
    500: '#7e2e84',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e84;
$custom-light: #a66da8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e84",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 132
  },
  "hsl": {
    "h": 295.814,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45179,
    "c": 0.15495,
    "h": 324.9
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#7E2E84
secondary
#64B05E
accent
#D85059
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2E84

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

Preview Lab → · Contrast checker → · Palette generator →

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