#7E22A5#7E22A5

#7E22A5 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.200 H 313.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7E22A5
RGBrgb(126, 34, 165)
HSLhsl(282, 66%, 39%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(23.6%, 79.4%, 0%, 35.3%)
CIE-LABlab(34.59, 57.81, -51.51)
CIE-LCHlch(34.59, 77.43, 318.30°)
OKLaboklab(46.22% 0.1364 -0.1457)
OKLCHoklch(46.22% 0.2 313.1)
XYZxyz(15.9665, 8.2968, 36.3504)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A5 #49A522
analogous
#3C22A5 #7E22A5 #A5228B
triadic
#7E22A5 #A57E22 #22A57E
tetradic
#7E22A5 #A53C22 #49A522 #228BA5
square
#7E22A5 #A53C22 #49A522 #228BA5
split-complementary
#7E22A5 #8BA522 #22A53C
monochromatic
#310D40 #571872 #7E22A5 #A330D4 #BA63DF

Accessibility & contrast

On white

7.90
#7E22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A5
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A5#FFFFFF#000000##FFFFFF
##7E22A51.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0F53A2
Tritanopia (blue-blind)
#7A4264
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e22a5;
/* rgb */ color: rgb(126, 34, 165);
/* oklch */ color: oklch(46.2% 0.200 313.1);
Tailwind
colors: {
  custom: {
    50: '#a869c0',
    500: '#7e22a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a5;
$custom-light: #a869c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a5",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 282.137,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46219,
    "c": 0.19961,
    "h": 313.1
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#7E22A5
secondary
#7DC45F
accent
#E93F72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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