#7E2EA3#7E2EA3

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

Color values

HEX#7E2EA3
RGBrgb(126, 46, 163)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 72%, 64%)
CMYKcmyk(22.7%, 71.8%, 0%, 36.1%)
CIE-LABlab(36.05, 52.82, -47.96)
CIE-LCHlch(36.05, 71.34, 317.76°)
OKLaboklab(47.21% 0.1255 -0.1354)
OKLCHoklch(47.21% 0.185 312.8)
XYZxyz(16.1909, 9.0344, 35.5342)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA3 #53A32E
analogous
#432EA3 #7E2EA3 #A32E8D
triadic
#7E2EA3 #A37E2E #2EA37E
tetradic
#7E2EA3 #A3432E #53A32E #2E8DA3
square
#7E2EA3 #A3432E #53A32E #2E8DA3
split-complementary
#7E2EA3 #8DA32E #2EA343
monochromatic
#341344 #592173 #7E2EA3 #A044CA #B874D8

Accessibility & contrast

On white

7.48
#7E2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2EA3
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA3#FFFFFF#000000##FFFFFF
##7E2EA31.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2ea3;
/* rgb */ color: rgb(126, 46, 163);
/* oklch */ color: oklch(47.2% 0.185 312.8);
Tailwind
colors: {
  custom: {
    50: '#a76ebf',
    500: '#7e2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea3;
$custom-light: #a76ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea3",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 281.026,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47205,
    "c": 0.18457,
    "h": 312.8
  },
  "luminance": 0.09034
}

Semantic roles & 50–950 ramp

primary
#7E2EA3
secondary
#87BF6D
accent
#DF4978
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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