#7E2FA4#7E2FA4

#7E2FA4 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.184 H 312.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7E2FA4
RGBrgb(126, 47, 164)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 64%)
CMYKcmyk(23.2%, 71.3%, 0%, 35.7%)
CIE-LABlab(36.27, 52.60, -48.20)
CIE-LCHlch(36.27, 71.35, 317.50°)
OKLaboklab(47.38% 0.1243 -0.1361)
OKLCHoklch(47.38% 0.184 312.4)
XYZxyz(16.3203, 9.1494, 36.0211)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA4 #55A42F
analogous
#442FA4 #7E2FA4 #A42F90
triadic
#7E2FA4 #A47E2F #2FA47E
tetradic
#7E2FA4 #A4442F #55A42F #2F90A4
square
#7E2FA4 #A4442F #55A42F #2F90A4
split-complementary
#7E2FA4 #90A42F #2FA444
monochromatic
#351445 #592174 #7E2FA4 #9F46CA #B876D8

Accessibility & contrast

On white

7.42
#7E2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FA4
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FA4#FFFFFF#000000##FFFFFF
##7E2FA41.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2fa4;
/* rgb */ color: rgb(126, 47, 164);
/* oklch */ color: oklch(47.4% 0.184 312.4);
Tailwind
colors: {
  custom: {
    50: '#a76fc0',
    500: '#7e2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa4;
$custom-light: #a76fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa4",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 280.513,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47383,
    "c": 0.18431,
    "h": 312.4
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

primary
#7E2FA4
secondary
#89C06F
accent
#DF497A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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