#7E1981#7E1981

#7E1981 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.178 H 326.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7E1981
RGBrgb(126, 25, 129)
HSLhsl(298, 68%, 30%)
HSVhsv(298, 81%, 51%)
CMYKcmyk(2.3%, 80.6%, 0%, 49.4%)
CIE-LABlab(31.15, 53.80, -34.95)
CIE-LCHlch(31.15, 64.15, 326.99°)
OKLaboklab(43.01% 0.1486 -0.0972)
OKLCHoklch(43.01% 0.178 326.8)
XYZxyz(12.9140, 6.7168, 21.3809)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1981 #1C8119
analogous
#4A1981 #7E1981 #811950
triadic
#7E1981 #817E19 #19817E
tetradic
#7E1981 #814A19 #1C8119 #195081
square
#7E1981 #814A19 #1C8119 #195081
split-complementary
#7E1981 #508119 #19814A
monochromatic
#1A051A #4C0F4E #7E1981 #B023B4 #D53BD9

Accessibility & contrast

On white

8.96
#7E1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1981
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1981#FFFFFF#000000##FFFFFF
##7E19811.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#344E7F
Tritanopia (blue-blind)
#822C4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1981;
/* rgb */ color: rgb(126, 25, 129);
/* oklch */ color: oklch(43.0% 0.178 326.8);
Tailwind
colors: {
  custom: {
    50: '#a763a6',
    500: '#7e1981',
    950: '#000000',
  },
}
SCSS
$custom: #7e1981;
$custom-light: #a763a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1981",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 298.269,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.43008,
    "c": 0.17756,
    "h": 326.8
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#7E1981
secondary
#44B541
accent
#EA3D42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1981

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

Preview Lab → · Contrast checker → · Palette generator →

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