#7E22AE#7E22AE

#7E22AE is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.9% C 0.208 H 310.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7E22AE
RGBrgb(126, 34, 174)
HSLhsl(279, 67%, 41%)
HSVhsv(279, 80%, 68%)
CMYKcmyk(27.6%, 80.5%, 0%, 31.8%)
CIE-LABlab(35.27, 59.68, -55.81)
CIE-LCHlch(35.27, 81.70, 316.92°)
OKLaboklab(46.91% 0.1344 -0.1584)
OKLCHoklch(46.91% 0.208 310.3)
XYZxyz(16.8147, 8.6361, 40.8173)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22AE #52AE22
analogous
#3822AE #7E22AE #AE2298
triadic
#7E22AE #AE7E22 #22AE7E
tetradic
#7E22AE #AE3822 #52AE22 #2298AE
square
#7E22AE #AE3822 #52AE22 #2298AE
split-complementary
#7E22AE #98AE22 #22AE38
monochromatic
#340E48 #59187B #7E22AE #A036D8 #B869E2

Accessibility & contrast

On white

7.70
#7E22AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E22AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22AE
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22AE#FFFFFF#000000##FFFFFF
##7E22AE1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#774669
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e22ae;
/* rgb */ color: rgb(126, 34, 174);
/* oklch */ color: oklch(46.9% 0.208 310.3);
Tailwind
colors: {
  custom: {
    50: '#a869c7',
    500: '#7e22ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e22ae;
$custom-light: #a869c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22ae",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 174
  },
  "hsl": {
    "h": 279.429,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4691,
    "c": 0.20772,
    "h": 310.3
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#7E22AE
secondary
#86C764
accent
#EA3E79
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22AE

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

Preview Lab → · Contrast checker → · Palette generator →

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