#7E22A9#7E22A9

#7E22A9 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.5% C 0.203 H 311.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7E22A9
RGBrgb(126, 34, 169)
HSLhsl(281, 67%, 40%)
HSVhsv(281, 80%, 66%)
CMYKcmyk(25.4%, 79.9%, 0%, 33.7%)
CIE-LABlab(34.89, 58.63, -53.43)
CIE-LCHlch(34.89, 79.33, 317.66°)
OKLaboklab(46.52% 0.1356 -0.1514)
OKLCHoklch(46.52% 0.203 311.8)
XYZxyz(16.3363, 8.4447, 38.2979)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A9 #4DA922
analogous
#3B22A9 #7E22A9 #A92290
triadic
#7E22A9 #A97E22 #22A97E
tetradic
#7E22A9 #A93B22 #4DA922 #2290A9
square
#7E22A9 #A93B22 #4DA922 #2290A9
split-complementary
#7E22A9 #90A922 #22A93B
monochromatic
#320D43 #581876 #7E22A9 #A232D6 #B965E0

Accessibility & contrast

On white

7.81
#7E22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A9
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A9#FFFFFF#000000##FFFFFF
##7E22A91.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#0054A6
Tritanopia (blue-blind)
#794466
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e22a9;
/* rgb */ color: rgb(126, 34, 169);
/* oklch */ color: oklch(46.5% 0.203 311.8);
Tailwind
colors: {
  custom: {
    50: '#a869c3',
    500: '#7e22a9',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a9;
$custom-light: #a869c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a9",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 280.889,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46523,
    "c": 0.20321,
    "h": 311.8
  },
  "luminance": 0.08444
}

Semantic roles & 50–950 ramp

primary
#7E22A9
secondary
#81C561
accent
#E93E75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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