#7E22A0#7E22A0

#7E22A0 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.195 H 314.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7E22A0
RGBrgb(126, 34, 160)
HSLhsl(284, 65%, 38%)
HSVhsv(284, 79%, 63%)
CMYKcmyk(21.2%, 78.8%, 0%, 37.3%)
CIE-LABlab(34.23, 56.79, -49.09)
CIE-LCHlch(34.23, 75.06, 319.16°)
OKLaboklab(45.85% 0.1373 -0.1386)
OKLCHoklch(45.85% 0.195 314.7)
XYZxyz(15.5203, 8.1183, 34.0003)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A0 #44A022
analogous
#3F22A0 #7E22A0 #A02283
triadic
#7E22A0 #A07E22 #22A07E
tetradic
#7E22A0 #A03F22 #44A022 #2283A0
square
#7E22A0 #A03F22 #44A022 #2283A0
split-complementary
#7E22A0 #83A022 #22A03F
monochromatic
#2F0D3B #56176E #7E22A0 #A62DD2 #BB5FDD

Accessibility & contrast

On white

8.00
#7E22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A0
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A0#FFFFFF#000000##FFFFFF
##7E22A01.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#1A539D
Tritanopia (blue-blind)
#7B3F61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e22a0;
/* rgb */ color: rgb(126, 34, 160);
/* oklch */ color: oklch(45.8% 0.195 314.7);
Tailwind
colors: {
  custom: {
    50: '#a868bd',
    500: '#7e22a0',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a0;
$custom-light: #a868bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a0",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 283.81,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45847,
    "c": 0.19513,
    "h": 314.7
  },
  "luminance": 0.08118
}

Semantic roles & 50–950 ramp

primary
#7E22A0
secondary
#77C25C
accent
#E8406D
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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