#7E1D81#7E1D81

#7E1D81 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.174 H 326.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7E1D81
RGBrgb(126, 29, 129)
HSLhsl(298, 63%, 31%)
HSVhsv(298, 78%, 51%)
CMYKcmyk(2.3%, 77.5%, 0%, 49.4%)
CIE-LABlab(31.58, 52.57, -34.27)
CIE-LCHlch(31.58, 62.76, 326.90°)
OKLaboklab(43.31% 0.1452 -0.0952)
OKLCHoklch(43.31% 0.174 326.7)
XYZxyz(13.0058, 6.9002, 21.4115)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D81 #20811D
analogous
#4C1D81 #7E1D81 #811D52
triadic
#7E1D81 #817E1D #1D817E
tetradic
#7E1D81 #814C1D #20811D #1D5281
square
#7E1D81 #814C1D #20811D #1D5281
split-complementary
#7E1D81 #52811D #1D814C
monochromatic
#1C071D #4D124F #7E1D81 #AF28B3 #D044D5

Accessibility & contrast

On white

8.82
#7E1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D81
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D81#FFFFFF#000000##FFFFFF
##7E1D811.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004384
Deuteranopia (green-blind)
#364E7F
Tritanopia (blue-blind)
#822E4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1d81;
/* rgb */ color: rgb(126, 29, 129);
/* oklch */ color: oklch(43.3% 0.174 326.7);
Tailwind
colors: {
  custom: {
    50: '#a765a6',
    500: '#7e1d81',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d81;
$custom-light: #a765a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d81",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 298.2,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43311,
    "c": 0.17362,
    "h": 326.7
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#7E1D81
secondary
#49B446
accent
#E64146
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1D81

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

Preview Lab → · Contrast checker → · Palette generator →

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