#7E1E80#7E1E80

#7E1E80 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.172 H 327.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7E1E80
RGBrgb(126, 30, 128)
HSLhsl(299, 62%, 31%)
HSVhsv(299, 77%, 50%)
CMYKcmyk(1.6%, 76.6%, 0%, 49.8%)
CIE-LABlab(31.63, 52.07, -33.56)
CIE-LCHlch(31.63, 61.95, 327.20°)
OKLaboklab(43.33% 0.1443 -0.0931)
OKLCHoklch(43.33% 0.172 327.2)
XYZxyz(12.9645, 6.9236, 21.0714)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E80 #20801E
analogous
#4D1E80 #7E1E80 #801E51
triadic
#7E1E80 #807E1E #1E807E
tetradic
#7E1E80 #804D1E #20801E #1E5180
square
#7E1E80 #804D1E #20801E #1E5180
split-complementary
#7E1E80 #51801E #1E804D
monochromatic
#1C071D #4D124E #7E1E80 #AF2AB2 #D045D3

Accessibility & contrast

On white

8.81
#7E1E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E80
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E80#FFFFFF#000000##FFFFFF
##7E1E801.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044383
Deuteranopia (green-blind)
#374F7E
Tritanopia (blue-blind)
#822E4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1e80;
/* rgb */ color: rgb(126, 30, 128);
/* oklch */ color: oklch(43.3% 0.172 327.2);
Tailwind
colors: {
  custom: {
    50: '#a765a5',
    500: '#7e1e80',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e80;
$custom-light: #a765a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e80",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 298.776,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43329,
    "c": 0.17175,
    "h": 327.2
  },
  "luminance": 0.06923
}

Semantic roles & 50–950 ramp

primary
#7E1E80
secondary
#49B347
accent
#E54346
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1E80

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

Preview Lab → · Contrast checker → · Palette generator →

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