#7E1881#7E1881

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

Color values

HEX#7E1881
RGBrgb(126, 24, 129)
HSLhsl(298, 69%, 30%)
HSVhsv(298, 81%, 51%)
CMYKcmyk(2.3%, 81.4%, 0%, 49.4%)
CIE-LABlab(31.05, 54.08, -35.11)
CIE-LCHlch(31.05, 64.48, 327.01°)
OKLaboklab(42.94% 0.1494 -0.0976)
OKLCHoklch(42.94% 0.178 326.8)
XYZxyz(12.8930, 6.6748, 21.3739)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1881 #1B8118
analogous
#4A1881 #7E1881 #81184F
triadic
#7E1881 #817E18 #18817E
tetradic
#7E1881 #814A18 #1B8118 #184F81
square
#7E1881 #814A18 #1B8118 #184F81
split-complementary
#7E1881 #4F8118 #18814A
monochromatic
#19051A #4C0E4D #7E1881 #B022B5 #D639DA

Accessibility & contrast

On white

8.99
#7E1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1881
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1881#FFFFFF#000000##FFFFFF
##7E18811.008.992.338.99
#FFFFFF8.991.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1881;
/* rgb */ color: rgb(126, 24, 129);
/* oklch */ color: oklch(42.9% 0.178 326.8);
Tailwind
colors: {
  custom: {
    50: '#a763a6',
    500: '#7e1881',
    950: '#000000',
  },
}
SCSS
$custom: #7e1881;
$custom-light: #a763a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1881",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 298.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.42938,
    "c": 0.17847,
    "h": 326.8
  },
  "luminance": 0.06674
}

Semantic roles & 50–950 ramp

primary
#7E1881
secondary
#43B540
accent
#EB3C41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1881

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

Preview Lab → · Contrast checker → · Palette generator →

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