#7E1781#7E1781

#7E1781 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.179 H 326.9°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7E1781
RGBrgb(126, 23, 129)
HSLhsl(298, 70%, 30%)
HSVhsv(298, 82%, 51%)
CMYKcmyk(2.3%, 82.2%, 0%, 49.4%)
CIE-LABlab(30.96, 54.36, -35.26)
CIE-LCHlch(30.96, 64.79, 327.03°)
OKLaboklab(42.87% 0.1502 -0.098)
OKLCHoklch(42.87% 0.179 326.9)
XYZxyz(12.8728, 6.6343, 21.3672)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1781 #1A8117
analogous
#491781 #7E1781 #81174F
triadic
#7E1781 #817E17 #17817E
tetradic
#7E1781 #814917 #1A8117 #174F81
square
#7E1781 #814917 #1A8117 #174F81
split-complementary
#7E1781 #4F8117 #178149
monochromatic
#19051A #4B0E4D #7E1781 #B120B5 #D737DB

Accessibility & contrast

On white

9.03
#7E1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1781
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1781#FFFFFF#000000##FFFFFF
##7E17811.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.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: #7e1781;
/* rgb */ color: rgb(126, 23, 129);
/* oklch */ color: oklch(42.9% 0.179 326.9);
Tailwind
colors: {
  custom: {
    50: '#a763a6',
    500: '#7e1781',
    950: '#000000',
  },
}
SCSS
$custom: #7e1781;
$custom-light: #a763a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1781",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 298.302,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42871,
    "c": 0.17936,
    "h": 326.9
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#7E1781
secondary
#42B53E
accent
#ED3B40
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1781

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

Preview Lab → · Contrast checker → · Palette generator →

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