#7E22A7#7E22A7

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

Color values

HEX#7E22A7
RGBrgb(126, 34, 167)
HSLhsl(282, 66%, 39%)
HSVhsv(282, 80%, 65%)
CMYKcmyk(24.6%, 79.6%, 0%, 34.5%)
CIE-LABlab(34.74, 58.22, -52.48)
CIE-LCHlch(34.74, 78.38, 317.97°)
OKLaboklab(46.37% 0.136 -0.1486)
OKLCHoklch(46.37% 0.201 312.5)
XYZxyz(16.1500, 8.3702, 37.3166)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A7 #4BA722
analogous
#3C22A7 #7E22A7 #A7228E
triadic
#7E22A7 #A77E22 #22A77E
tetradic
#7E22A7 #A73C22 #4BA722 #228EA7
square
#7E22A7 #A73C22 #4BA722 #228EA7
split-complementary
#7E22A7 #8EA722 #22A73C
monochromatic
#310D41 #581874 #7E22A7 #A331D5 #B964DF

Accessibility & contrast

On white

7.85
#7E22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22A7
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A7#FFFFFF#000000##FFFFFF
##7E22A71.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0853A4
Tritanopia (blue-blind)
#794365
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e22a7;
/* rgb */ color: rgb(126, 34, 167);
/* oklch */ color: oklch(46.4% 0.201 312.5);
Tailwind
colors: {
  custom: {
    50: '#a869c2',
    500: '#7e22a7',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a7;
$custom-light: #a869c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a7",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 281.504,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46371,
    "c": 0.20141,
    "h": 312.5
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#7E22A7
secondary
#7FC560
accent
#E93F73
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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