#7E2FA2#7E2FA2

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

Color values

HEX#7E2FA2
RGBrgb(126, 47, 162)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 64%)
CMYKcmyk(22.2%, 71%, 0%, 36.5%)
CIE-LABlab(36.13, 52.17, -47.22)
CIE-LCHlch(36.13, 70.37, 317.85°)
OKLaboklab(47.24% 0.1245 -0.1332)
OKLCHoklch(47.24% 0.182 313.1)
XYZxyz(16.1411, 9.0778, 35.0773)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA2 #53A22F
analogous
#442FA2 #7E2FA2 #A22F8C
triadic
#7E2FA2 #A27E2F #2FA27E
tetradic
#7E2FA2 #A2442F #53A22F #2F8CA2
square
#7E2FA2 #A2442F #53A22F #2F8CA2
split-complementary
#7E2FA2 #8CA22F #2FA244
monochromatic
#341343 #592173 #7E2FA2 #A045C9 #B875D7

Accessibility & contrast

On white

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

On black

2.82
#7E2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E2FA2#FFFFFF#000000##FFFFFF
##7E2FA21.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#25579F
Tritanopia (blue-blind)
#7A4765
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2fa2;
/* rgb */ color: rgb(126, 47, 162);
/* oklch */ color: oklch(47.2% 0.182 313.1);
Tailwind
colors: {
  custom: {
    50: '#a76ebe',
    500: '#7e2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa2;
$custom-light: #a76ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa2",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 281.217,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47242,
    "c": 0.18235,
    "h": 313.1
  },
  "luminance": 0.09077
}

Semantic roles & 50–950 ramp

primary
#7E2FA2
secondary
#87BF6E
accent
#DE4978
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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