#7E2DA4#7E2DA4

#7E2DA4 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.187 H 312.6°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E2DA4
RGBrgb(126, 45, 164)
HSLhsl(281, 57%, 41%)
HSVhsv(281, 73%, 64%)
CMYKcmyk(23.2%, 72.6%, 0%, 35.7%)
CIE-LABlab(35.97, 53.45, -48.68)
CIE-LCHlch(35.97, 72.30, 317.67°)
OKLaboklab(47.17% 0.1264 -0.1375)
OKLCHoklch(47.17% 0.187 312.6)
XYZxyz(16.2422, 8.9932, 35.9950)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DA4 #53A42D
analogous
#422DA4 #7E2DA4 #A42D8E
triadic
#7E2DA4 #A47E2D #2DA47E
tetradic
#7E2DA4 #A4422D #53A42D #2D8EA4
square
#7E2DA4 #A4422D #53A42D #2D8EA4
split-complementary
#7E2DA4 #8EA42D #2DA442
monochromatic
#341344 #592074 #7E2DA4 #A043CB #B873D9

Accessibility & contrast

On white

7.50
#7E2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DA4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DA4#FFFFFF#000000##FFFFFF
##7E2DA41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2056A1
Tritanopia (blue-blind)
#7A4766
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2da4;
/* rgb */ color: rgb(126, 45, 164);
/* oklch */ color: oklch(47.2% 0.187 312.6);
Tailwind
colors: {
  custom: {
    50: '#a76ec0',
    500: '#7e2da4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2da4;
$custom-light: #a76ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2da4",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 280.84,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4717,
    "c": 0.18676,
    "h": 312.6
  },
  "luminance": 0.08993
}

Semantic roles & 50–950 ramp

primary
#7E2DA4
secondary
#87C06D
accent
#E04878
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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