#7E1E82#7E1E82

#7E1E82 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.173 H 326.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7E1E82
RGBrgb(126, 30, 130)
HSLhsl(298, 63%, 31%)
HSVhsv(298, 77%, 51%)
CMYKcmyk(3.1%, 76.9%, 0%, 49%)
CIE-LABlab(31.75, 52.42, -34.62)
CIE-LCHlch(31.75, 62.82, 326.56°)
OKLaboklab(43.46% 0.1442 -0.0962)
OKLCHoklch(43.46% 0.173 326.3)
XYZxyz(13.0975, 6.9768, 21.7716)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E82 #22821E
analogous
#4C1E82 #7E1E82 #821E54
triadic
#7E1E82 #827E1E #1E827E
tetradic
#7E1E82 #824C1E #22821E #1E5482
square
#7E1E82 #824C1E #22821E #1E5482
split-complementary
#7E1E82 #54821E #1E824C
monochromatic
#1E071F #4E1350 #7E1E82 #AE29B4 #CF46D4

Accessibility & contrast

On white

8.77
#7E1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E82
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E82#FFFFFF#000000##FFFFFF
##7E1E821.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#812F4F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1e82;
/* rgb */ color: rgb(126, 30, 130);
/* oklch */ color: oklch(43.5% 0.173 326.3);
Tailwind
colors: {
  custom: {
    50: '#a765a7',
    500: '#7e1e82',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e82;
$custom-light: #a765a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e82",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 297.6,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43455,
    "c": 0.17338,
    "h": 326.3
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

primary
#7E1E82
secondary
#4BB547
accent
#E64249
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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