#7E2EA4#7E2EA4

#7E2EA4 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.186 H 312.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA4
RGBrgb(126, 46, 164)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 72%, 64%)
CMYKcmyk(23.2%, 72%, 0%, 35.7%)
CIE-LABlab(36.12, 53.03, -48.45)
CIE-LCHlch(36.12, 71.83, 317.59°)
OKLaboklab(47.28% 0.1253 -0.1368)
OKLCHoklch(47.28% 0.186 312.5)
XYZxyz(16.2808, 9.0704, 36.0079)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA4 #54A42E
analogous
#432EA4 #7E2EA4 #A42E8F
triadic
#7E2EA4 #A47E2E #2EA47E
tetradic
#7E2EA4 #A4432E #54A42E #2E8FA4
square
#7E2EA4 #A4432E #54A42E #2E8FA4
split-complementary
#7E2EA4 #8FA42E #2EA443
monochromatic
#351344 #592174 #7E2EA4 #9F45CB #B874D8

Accessibility & contrast

On white

7.46
#7E2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EA4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA4#FFFFFF#000000##FFFFFF
##7E2EA41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2ea4;
/* rgb */ color: rgb(126, 46, 164);
/* oklch */ color: oklch(47.3% 0.186 312.5);
Tailwind
colors: {
  custom: {
    50: '#a76ec0',
    500: '#7e2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea4;
$custom-light: #a76ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea4",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 280.678,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47276,
    "c": 0.18555,
    "h": 312.5
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#7E2EA4
secondary
#88C06E
accent
#DF4879
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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