#7E1481#7E1481

#7E1481 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.182 H 326.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7E1481
RGBrgb(126, 20, 129)
HSLhsl(298, 73%, 29%)
HSVhsv(298, 84%, 51%)
CMYKcmyk(2.3%, 84.5%, 0%, 49.4%)
CIE-LABlab(30.69, 55.14, -35.68)
CIE-LCHlch(30.69, 65.68, 327.09°)
OKLaboklab(42.68% 0.1524 -0.0993)
OKLCHoklch(42.68% 0.182 326.9)
XYZxyz(12.8166, 6.5218, 21.3484)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1481 #178114
analogous
#481481 #7E1481 #81144E
triadic
#7E1481 #817E14 #14817E
tetradic
#7E1481 #814814 #178114 #144E81
square
#7E1481 #814814 #178114 #144E81
split-complementary
#7E1481 #4E8114 #148148
monochromatic
#1A041A #4A0C4C #7E1481 #B21CB6 #DA30DF

Accessibility & contrast

On white

9.11
#7E1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1481
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1481#FFFFFF#000000##FFFFFF
##7E14811.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#334D7F
Tritanopia (blue-blind)
#82294C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1481;
/* rgb */ color: rgb(126, 20, 129);
/* oklch */ color: oklch(42.7% 0.182 326.9);
Tailwind
colors: {
  custom: {
    50: '#a762a6',
    500: '#7e1481',
    950: '#000000',
  },
}
SCSS
$custom: #7e1481;
$custom-light: #a762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1481",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 298.349,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42682,
    "c": 0.18185,
    "h": 326.9
  },
  "luminance": 0.06521
}

Semantic roles & 50–950 ramp

primary
#7E1481
secondary
#3EB63B
accent
#F0383D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1481

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

Preview Lab → · Contrast checker → · Palette generator →

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