#7E22A4#7E22A4

#7E22A4 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.199 H 313.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E22A4
RGBrgb(126, 34, 164)
HSLhsl(282, 66%, 39%)
HSVhsv(282, 79%, 64%)
CMYKcmyk(23.2%, 79.3%, 0%, 35.7%)
CIE-LABlab(34.52, 57.60, -51.03)
CIE-LCHlch(34.52, 76.96, 318.46°)
OKLaboklab(46.14% 0.1366 -0.1443)
OKLCHoklch(46.14% 0.199 313.4)
XYZxyz(15.8759, 8.2605, 35.8729)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A4 #48A422
analogous
#3D22A4 #7E22A4 #A42289
triadic
#7E22A4 #A47E22 #22A47E
tetradic
#7E22A4 #A43D22 #48A422 #2289A4
square
#7E22A4 #A43D22 #48A422 #2289A4
split-complementary
#7E22A4 #89A422 #22A43D
monochromatic
#300D3F #571771 #7E22A4 #A42FD4 #BA62DE

Accessibility & contrast

On white

7.92
#7E22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A4
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A4#FFFFFF#000000##FFFFFF
##7E22A41.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#1153A1
Tritanopia (blue-blind)
#7A4163
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e22a4;
/* rgb */ color: rgb(126, 34, 164);
/* oklch */ color: oklch(46.1% 0.199 313.4);
Tailwind
colors: {
  custom: {
    50: '#a869c0',
    500: '#7e22a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a4;
$custom-light: #a869c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a4",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 282.462,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46144,
    "c": 0.19872,
    "h": 313.4
  },
  "luminance": 0.0826
}

Semantic roles & 50–950 ramp

primary
#7E22A4
secondary
#7CC45E
accent
#E93F71
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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