#7E1DAD#7E1DAD

#7E1DAD is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.5% C 0.211 H 310.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7E1DAD
RGBrgb(126, 29, 173)
HSLhsl(280, 71%, 40%)
HSVhsv(280, 83%, 68%)
CMYKcmyk(27.2%, 83.2%, 0%, 32.2%)
CIE-LABlab(34.66, 61.02, -56.20)
CIE-LCHlch(34.66, 82.95, 317.35°)
OKLaboklab(46.46% 0.1383 -0.1595)
OKLCHoklch(46.46% 0.211 310.9)
XYZxyz(16.5849, 8.3319, 40.2616)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1DAD #4CAD1D
analogous
#361DAD #7E1DAD #AD1D94
triadic
#7E1DAD #AD7E1D #1DAD7E
tetradic
#7E1DAD #AD361D #4CAD1D #1D94AD
square
#7E1DAD #AD361D #4CAD1D #1D94AD
split-complementary
#7E1DAD #94AD1D #1DAD36
monochromatic
#320B44 #581479 #7E1DAD #A22CDC #B960E4

Accessibility & contrast

On white

7.88
#7E1DAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E1DAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1DAD
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1DAD#FFFFFF#000000##FFFFFF
##7E1DAD1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#784367
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e1dad;
/* rgb */ color: rgb(126, 29, 173);
/* oklch */ color: oklch(46.5% 0.211 310.9);
Tailwind
colors: {
  custom: {
    50: '#a967c6',
    500: '#7e1dad',
    950: '#000000',
  },
}
SCSS
$custom: #7e1dad;
$custom-light: #a967c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1dad",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 173
  },
  "hsl": {
    "h": 280.417,
    "s": 71.287,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4646,
    "c": 0.21111,
    "h": 310.9
  },
  "luminance": 0.08331
}

Semantic roles & 50–950 ramp

primary
#7E1DAD
secondary
#80C95D
accent
#EE3A75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E1DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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