#7E2DA1#7E2DA1

#7E2DA1 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.184 H 313.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7E2DA1
RGBrgb(126, 45, 161)
HSLhsl(282, 56%, 40%)
HSVhsv(282, 72%, 63%)
CMYKcmyk(21.7%, 72%, 0%, 36.9%)
CIE-LABlab(35.76, 52.81, -47.21)
CIE-LCHlch(35.76, 70.84, 318.20°)
OKLaboklab(46.96% 0.1267 -0.1332)
OKLCHoklch(46.96% 0.184 313.6)
XYZxyz(15.9745, 8.8861, 34.5850)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DA1 #50A12D
analogous
#442DA1 #7E2DA1 #A12D8A
triadic
#7E2DA1 #A17E2D #2DA17E
tetradic
#7E2DA1 #A1442D #50A12D #2D8AA1
square
#7E2DA1 #A1442D #50A12D #2D8AA1
split-complementary
#7E2DA1 #8AA12D #2DA144
monochromatic
#331241 #592071 #7E2DA1 #A141CA #B871D7

Accessibility & contrast

On white

7.56
#7E2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DA1
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DA1#FFFFFF#000000##FFFFFF
##7E2DA11.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#24569E
Tritanopia (blue-blind)
#7A4664
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2da1;
/* rgb */ color: rgb(126, 45, 161);
/* oklch */ color: oklch(47.0% 0.184 313.6);
Tailwind
colors: {
  custom: {
    50: '#a76dbd',
    500: '#7e2da1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2da1;
$custom-light: #a76dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2da1",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 281.897,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46957,
    "c": 0.18385,
    "h": 313.6
  },
  "luminance": 0.08886
}

Semantic roles & 50–950 ramp

primary
#7E2DA1
secondary
#84BF6B
accent
#E04876
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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