#7E2AAE#7E2AAE

#7E2AAE is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.6% C 0.200 H 309.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7E2AAE
RGBrgb(126, 42, 174)
HSLhsl(278, 61%, 42%)
HSVhsv(278, 76%, 68%)
CMYKcmyk(27.6%, 75.9%, 0%, 31.8%)
CIE-LABlab(36.27, 56.81, -54.19)
CIE-LCHlch(36.27, 78.51, 316.35°)
OKLaboklab(47.61% 0.1277 -0.1537)
OKLCHoklch(47.61% 0.2 309.7)
XYZxyz(17.0706, 9.1479, 40.9026)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AAE #5AAE2A
analogous
#3C2AAE #7E2AAE #AE2A9C
triadic
#7E2AAE #AE7E2A #2AAE7E
tetradic
#7E2AAE #AE3C2A #5AAE2A #2A9CAE
square
#7E2AAE #AE3C2A #5AAE2A #2A9CAE
split-complementary
#7E2AAE #9CAE2A #2AAE3C
monochromatic
#37124B #5A1E7D #7E2AAE #9E43D2 #B875DE

Accessibility & contrast

On white

7.42
#7E2AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E2AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AAE
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AAE#FFFFFF#000000##FFFFFF
##7E2AAE1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#774A6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2aae;
/* rgb */ color: rgb(126, 42, 174);
/* oklch */ color: oklch(47.6% 0.200 309.7);
Tailwind
colors: {
  custom: {
    50: '#a86dc7',
    500: '#7e2aae',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aae;
$custom-light: #a86dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aae",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 278.182,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47608,
    "c": 0.19979,
    "h": 309.7
  },
  "luminance": 0.09148
}

Semantic roles & 50–950 ramp

primary
#7E2AAE
secondary
#8EC56F
accent
#E4447E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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