#7E2FAE#7E2FAE

#7E2FAE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.194 H 309.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7E2FAE
RGBrgb(126, 47, 174)
HSLhsl(277, 57%, 43%)
HSVhsv(277, 73%, 68%)
CMYKcmyk(27.6%, 73%, 0%, 31.8%)
CIE-LABlab(36.98, 54.79, -53.05)
CIE-LCHlch(36.98, 76.26, 315.93°)
OKLaboklab(48.11% 0.1229 -0.1503)
OKLCHoklch(48.11% 0.194 309.3)
XYZxyz(17.2591, 9.5250, 40.9655)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FAE #5FAE2F
analogous
#3E2FAE #7E2FAE #AE2F9E
triadic
#7E2FAE #AE7E2F #2FAE7E
tetradic
#7E2FAE #AE3E2F #5FAE2F #2F9EAE
square
#7E2FAE #AE3E2F #5FAE2F #2F9EAE
split-complementary
#7E2FAE #9EAE2F #2FAE3E
monochromatic
#38154E #5B227E #7E2FAE #9D4CCF #B77CDC

Accessibility & contrast

On white

7.23
#7E2FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E2FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FAE
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FAE#FFFFFF#000000##FFFFFF
##7E2FAE1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0F58AB
Tritanopia (blue-blind)
#774C6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2fae;
/* rgb */ color: rgb(126, 47, 174);
/* oklch */ color: oklch(48.1% 0.194 309.3);
Tailwind
colors: {
  custom: {
    50: '#a86fc7',
    500: '#7e2fae',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fae;
$custom-light: #a86fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fae",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 277.323,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48109,
    "c": 0.19418,
    "h": 309.3
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

primary
#7E2FAE
secondary
#93C475
accent
#E14781
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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