#7E22AA#7E22AA

#7E22AA is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.6% C 0.204 H 311.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7E22AA
RGBrgb(126, 34, 170)
HSLhsl(281, 67%, 40%)
HSVhsv(281, 80%, 67%)
CMYKcmyk(25.9%, 80%, 0%, 33.3%)
CIE-LABlab(34.97, 58.84, -53.91)
CIE-LCHlch(34.97, 79.80, 317.50°)
OKLaboklab(46.6% 0.1353 -0.1528)
OKLCHoklch(46.6% 0.204 311.5)
XYZxyz(16.4305, 8.4824, 38.7942)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22AA #4EAA22
analogous
#3A22AA #7E22AA #AA2292
triadic
#7E22AA #AA7E22 #22AA7E
tetradic
#7E22AA #AA3A22 #4EAA22 #2292AA
square
#7E22AA #AA3A22 #4EAA22 #2292AA
split-complementary
#7E22AA #92AA22 #22AA3A
monochromatic
#320E44 #581877 #7E22AA #A133D6 #B966E0

Accessibility & contrast

On white

7.79
#7E22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E22AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22AA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22AA#FFFFFF#000000##FFFFFF
##7E22AA1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#784466
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e22aa;
/* rgb */ color: rgb(126, 34, 170);
/* oklch */ color: oklch(46.6% 0.204 311.5);
Tailwind
colors: {
  custom: {
    50: '#a869c4',
    500: '#7e22aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e22aa;
$custom-light: #a869c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22aa",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 280.588,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.466,
    "c": 0.20411,
    "h": 311.5
  },
  "luminance": 0.08482
}

Semantic roles & 50–950 ramp

primary
#7E22AA
secondary
#82C662
accent
#EA3E76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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