#7E1D8D#7E1D8D

#7E1D8D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.184 H 321.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7E1D8D
RGBrgb(126, 29, 141)
HSLhsl(292, 66%, 33%)
HSVhsv(292, 79%, 55%)
CMYKcmyk(10.6%, 79.4%, 0%, 44.7%)
CIE-LABlab(32.34, 54.74, -40.51)
CIE-LCHlch(32.34, 68.10, 323.50°)
OKLaboklab(44.1% 0.1443 -0.1134)
OKLCHoklch(44.1% 0.184 321.8)
XYZxyz(13.8508, 7.2382, 25.8617)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D8D #2C8D1D
analogous
#461D8D #7E1D8D #8D1D64
triadic
#7E1D8D #8D7E1D #1D8D7E
tetradic
#7E1D8D #8D461D #2C8D1D #1D648D
square
#7E1D8D #8D461D #2C8D1D #1D648D
split-complementary
#7E1D8D #648D1D #1D8D46
monochromatic
#230827 #51135A #7E1D8D #AB27C0 #C74BDA

Accessibility & contrast

On white

8.58
#7E1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D8D
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D8D#FFFFFF#000000##FFFFFF
##7E1D8D1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2D508A
Tritanopia (blue-blind)
#7F3455
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1d8d;
/* rgb */ color: rgb(126, 29, 141);
/* oklch */ color: oklch(44.1% 0.184 321.8);
Tailwind
colors: {
  custom: {
    50: '#a765af',
    500: '#7e1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d8d;
$custom-light: #a765af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d8d",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 291.964,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44099,
    "c": 0.18355,
    "h": 321.8
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#7E1D8D
secondary
#59BC4A
accent
#E93F56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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