#7E22A2#7E22A2

#7E22A2 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.197 H 314.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7E22A2
RGBrgb(126, 34, 162)
HSLhsl(283, 65%, 38%)
HSVhsv(283, 79%, 64%)
CMYKcmyk(22.2%, 79%, 0%, 36.5%)
CIE-LABlab(34.37, 57.20, -50.06)
CIE-LCHlch(34.37, 76.01, 318.81°)
OKLaboklab(46% 0.137 -0.1415)
OKLCHoklch(46% 0.197 314.1)
XYZxyz(15.6967, 8.1889, 34.9292)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A2 #46A222
analogous
#3E22A2 #7E22A2 #A22286
triadic
#7E22A2 #A27E22 #22A27E
tetradic
#7E22A2 #A23E22 #46A222 #2286A2
square
#7E22A2 #A23E22 #46A222 #2286A2
split-complementary
#7E22A2 #86A222 #22A23E
monochromatic
#2F0D3D #57176F #7E22A2 #A52ED3 #BB61DE

Accessibility & contrast

On white

7.96
#7E22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A2#FFFFFF#000000##FFFFFF
##7E22A21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#16539F
Tritanopia (blue-blind)
#7A4062
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e22a2;
/* rgb */ color: rgb(126, 34, 162);
/* oklch */ color: oklch(46.0% 0.197 314.1);
Tailwind
colors: {
  custom: {
    50: '#a869be',
    500: '#7e22a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a2;
$custom-light: #a869be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a2",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 283.125,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45995,
    "c": 0.19692,
    "h": 314.1
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#7E22A2
secondary
#7AC35D
accent
#E8406F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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