#7E22A1#7E22A1

#7E22A1 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.196 H 314.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7E22A1
RGBrgb(126, 34, 161)
HSLhsl(283, 65%, 38%)
HSVhsv(283, 79%, 63%)
CMYKcmyk(21.7%, 78.9%, 0%, 36.9%)
CIE-LABlab(34.30, 56.99, -49.57)
CIE-LCHlch(34.30, 75.54, 318.98°)
OKLaboklab(45.92% 0.1372 -0.14)
OKLCHoklch(45.92% 0.196 314.4)
XYZxyz(15.6081, 8.1534, 34.4629)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A1 #45A122
analogous
#3F22A1 #7E22A1 #A12284
triadic
#7E22A1 #A17E22 #22A17E
tetradic
#7E22A1 #A13F22 #45A122 #2284A1
square
#7E22A1 #A13F22 #45A122 #2284A1
split-complementary
#7E22A1 #84A122 #22A13F
monochromatic
#2F0D3C #56176E #7E22A1 #A52DD3 #BB60DD

Accessibility & contrast

On white

7.98
#7E22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A1
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A1#FFFFFF#000000##FFFFFF
##7E22A11.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#18539E
Tritanopia (blue-blind)
#7B4061
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e22a1;
/* rgb */ color: rgb(126, 34, 161);
/* oklch */ color: oklch(45.9% 0.196 314.4);
Tailwind
colors: {
  custom: {
    50: '#a868be',
    500: '#7e22a1',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a1;
$custom-light: #a868be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a1",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 283.465,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45921,
    "c": 0.19602,
    "h": 314.4
  },
  "luminance": 0.08153
}

Semantic roles & 50–950 ramp

primary
#7E22A1
secondary
#79C25D
accent
#E8406E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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