#7E22A8#7E22A8

#7E22A8 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.4% C 0.202 H 312.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7E22A8
RGBrgb(126, 34, 168)
HSLhsl(281, 66%, 40%)
HSVhsv(281, 80%, 66%)
CMYKcmyk(25%, 79.8%, 0%, 34.1%)
CIE-LABlab(34.82, 58.43, -52.95)
CIE-LCHlch(34.82, 78.85, 317.81°)
OKLaboklab(46.45% 0.1358 -0.15)
OKLCHoklch(46.45% 0.202 312.2)
XYZxyz(16.2428, 8.4073, 37.8053)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A8 #4CA822
analogous
#3B22A8 #7E22A8 #A8228F
triadic
#7E22A8 #A87E22 #22A87E
tetradic
#7E22A8 #A83B22 #4CA822 #228FA8
square
#7E22A8 #A83B22 #4CA822 #228FA8
split-complementary
#7E22A8 #8FA822 #22A83B
monochromatic
#320D42 #581875 #7E22A8 #A232D5 #B965E0

Accessibility & contrast

On white

7.83
#7E22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A8
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A8#FFFFFF#000000##FFFFFF
##7E22A81.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0454A5
Tritanopia (blue-blind)
#794365
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e22a8;
/* rgb */ color: rgb(126, 34, 168);
/* oklch */ color: oklch(46.4% 0.202 312.2);
Tailwind
colors: {
  custom: {
    50: '#a869c3',
    500: '#7e22a8',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a8;
$custom-light: #a869c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a8",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 281.194,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46447,
    "c": 0.20231,
    "h": 312.2
  },
  "luminance": 0.08407
}

Semantic roles & 50–950 ramp

primary
#7E22A8
secondary
#80C561
accent
#E93F74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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