#7E1980#7E1980

#7E1980 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.177 H 327.2°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7E1980
RGBrgb(126, 25, 128)
HSLhsl(299, 67%, 30%)
HSVhsv(299, 80%, 50%)
CMYKcmyk(1.6%, 80.5%, 0%, 49.8%)
CIE-LABlab(31.09, 53.63, -34.42)
CIE-LCHlch(31.09, 63.72, 327.31°)
OKLaboklab(42.94% 0.1487 -0.0956)
OKLCHoklch(42.94% 0.177 327.2)
XYZxyz(12.8479, 6.6903, 21.0326)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1980 #1B8019
analogous
#4B1980 #7E1980 #80194E
triadic
#7E1980 #807E19 #19807E
tetradic
#7E1980 #804B19 #1B8019 #194E80
square
#7E1980 #804B19 #1B8019 #194E80
split-complementary
#7E1980 #4E8019 #19804B
monochromatic
#19051A #4C0F4D #7E1980 #B023B3 #D63BD9

Accessibility & contrast

On white

8.98
#7E1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1980
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1980#FFFFFF#000000##FFFFFF
##7E19801.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004183
Deuteranopia (green-blind)
#354E7E
Tritanopia (blue-blind)
#822B4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1980;
/* rgb */ color: rgb(126, 25, 128);
/* oklch */ color: oklch(42.9% 0.177 327.2);
Tailwind
colors: {
  custom: {
    50: '#a763a5',
    500: '#7e1980',
    950: '#000000',
  },
}
SCSS
$custom: #7e1980;
$custom-light: #a763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1980",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 298.835,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.42944,
    "c": 0.17677,
    "h": 327.2
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#7E1980
secondary
#43B441
accent
#EA3E41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1980

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

Preview Lab → · Contrast checker → · Palette generator →

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