#7E2FA1#7E2FA1

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

Color values

HEX#7E2FA1
RGBrgb(126, 47, 161)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 63%)
CMYKcmyk(21.7%, 70.8%, 0%, 36.9%)
CIE-LABlab(36.07, 51.96, -46.73)
CIE-LCHlch(36.07, 69.88, 318.03°)
OKLaboklab(47.17% 0.1246 -0.1318)
OKLCHoklch(47.17% 0.181 313.4)
XYZxyz(16.0526, 9.0424, 34.6110)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA1 #52A12F
analogous
#452FA1 #7E2FA1 #A12F8B
triadic
#7E2FA1 #A17E2F #2FA17E
tetradic
#7E2FA1 #A1452F #52A12F #2F8BA1
square
#7E2FA1 #A1452F #52A12F #2F8BA1
split-complementary
#7E2FA1 #8BA12F #2FA145
monochromatic
#341342 #592172 #7E2FA1 #A045C9 #B874D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2FA1#FFFFFF#000000##FFFFFF
##7E2FA11.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)
#0051A4
Deuteranopia (green-blind)
#27579E
Tritanopia (blue-blind)
#7A4765
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2fa1;
/* rgb */ color: rgb(126, 47, 161);
/* oklch */ color: oklch(47.2% 0.181 313.4);
Tailwind
colors: {
  custom: {
    50: '#a76ebd',
    500: '#7e2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa1;
$custom-light: #a76ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa1",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 281.579,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47172,
    "c": 0.18137,
    "h": 313.4
  },
  "luminance": 0.09042
}

Semantic roles & 50–950 ramp

primary
#7E2FA1
secondary
#86BE6E
accent
#DE4A77
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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