#7E1D8A#7E1D8A

#7E1D8A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.181 H 323.0°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7E1D8A
RGBrgb(126, 29, 138)
HSLhsl(293, 65%, 33%)
HSVhsv(293, 79%, 54%)
CMYKcmyk(8.7%, 79%, 0%, 45.9%)
CIE-LABlab(32.15, 54.19, -38.97)
CIE-LCHlch(32.15, 66.74, 324.28°)
OKLaboklab(43.9% 0.1446 -0.1089)
OKLCHoklch(43.9% 0.181 323)
XYZxyz(13.6306, 7.1502, 24.7020)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D8A #298A1D
analogous
#471D8A #7E1D8A #8A1D60
triadic
#7E1D8A #8A7E1D #1D8A7E
tetradic
#7E1D8A #8A471D #298A1D #1D608A
square
#7E1D8A #8A471D #298A1D #1D608A
split-complementary
#7E1D8A #608A1D #1D8A47
monochromatic
#220825 #501257 #7E1D8A #AC28BD #C949D9

Accessibility & contrast

On white

8.64
#7E1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D8A
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D8A#FFFFFF#000000##FFFFFF
##7E1D8A1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#304F88
Tritanopia (blue-blind)
#803353
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1d8a;
/* rgb */ color: rgb(126, 29, 138);
/* oklch */ color: oklch(43.9% 0.181 323.0);
Tailwind
colors: {
  custom: {
    50: '#a765ad',
    500: '#7e1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d8a;
$custom-light: #a765ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d8a",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 293.394,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43896,
    "c": 0.18105,
    "h": 323
  },
  "luminance": 0.07149
}

Semantic roles & 50–950 ramp

primary
#7E1D8A
secondary
#55BB48
accent
#E84052
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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