#7E2FA3#7E2FA3

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

Color values

HEX#7E2FA3
RGBrgb(126, 47, 163)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 64%)
CMYKcmyk(22.7%, 71.2%, 0%, 36.1%)
CIE-LABlab(36.20, 52.39, -47.71)
CIE-LCHlch(36.20, 70.86, 317.68°)
OKLaboklab(47.31% 0.1244 -0.1347)
OKLCHoklch(47.31% 0.183 312.7)
XYZxyz(16.2304, 9.1135, 35.5473)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA3 #54A32F
analogous
#442FA3 #7E2FA3 #A32F8E
triadic
#7E2FA3 #A37E2F #2FA37E
tetradic
#7E2FA3 #A3442F #54A32F #2F8EA3
square
#7E2FA3 #A3442F #54A32F #2F8EA3
split-complementary
#7E2FA3 #8EA32F #2FA344
monochromatic
#351444 #592173 #7E2FA3 #9F46CA #B875D7

Accessibility & contrast

On white

7.44
#7E2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2FA3
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FA3#FFFFFF#000000##FFFFFF
##7E2FA31.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2457A0
Tritanopia (blue-blind)
#7A4866
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2fa3;
/* rgb */ color: rgb(126, 47, 163);
/* oklch */ color: oklch(47.3% 0.183 312.7);
Tailwind
colors: {
  custom: {
    50: '#a76fbf',
    500: '#7e2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa3;
$custom-light: #a76fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa3",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 280.862,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47313,
    "c": 0.18333,
    "h": 312.7
  },
  "luminance": 0.09113
}

Semantic roles & 50–950 ramp

primary
#7E2FA3
secondary
#88BF6F
accent
#DF4979
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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