#7E2AAA#7E2AAA

#7E2AAA is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.196 H 310.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E2AAA
RGBrgb(126, 42, 170)
HSLhsl(279, 60%, 42%)
HSVhsv(279, 75%, 67%)
CMYKcmyk(25.9%, 75.3%, 0%, 33.3%)
CIE-LABlab(35.97, 55.95, -52.28)
CIE-LCHlch(35.97, 76.57, 316.94°)
OKLaboklab(47.31% 0.1284 -0.1481)
OKLCHoklch(47.31% 0.196 310.9)
XYZxyz(16.6865, 8.9942, 38.8795)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AAA #56AA2A
analogous
#3E2AAA #7E2AAA #AA2A96
triadic
#7E2AAA #AA7E2A #2AAA7E
tetradic
#7E2AAA #AA3E2A #56AA2A #2A96AA
square
#7E2AAA #AA3E2A #56AA2A #2A96AA
split-complementary
#7E2AAA #96AA2A #2AAA3E
monochromatic
#351248 #5A1E79 #7E2AAA #9F41D0 #B872DC

Accessibility & contrast

On white

7.50
#7E2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AAA
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AAA#FFFFFF#000000##FFFFFF
##7E2AAA1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0F56A7
Tritanopia (blue-blind)
#784868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2aaa;
/* rgb */ color: rgb(126, 42, 170);
/* oklch */ color: oklch(47.3% 0.196 310.9);
Tailwind
colors: {
  custom: {
    50: '#a86cc4',
    500: '#7e2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aaa;
$custom-light: #a86cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aaa",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 279.375,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47307,
    "c": 0.19598,
    "h": 310.9
  },
  "luminance": 0.08994
}

Semantic roles & 50–950 ramp

primary
#7E2AAA
secondary
#8AC36C
accent
#E4447B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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