#7E22AC#7E22AC

#7E22AC is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.206 H 310.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E22AC
RGBrgb(126, 34, 172)
HSLhsl(280, 67%, 40%)
HSVhsv(280, 80%, 67%)
CMYKcmyk(26.7%, 80.2%, 0%, 32.5%)
CIE-LABlab(35.12, 59.26, -54.86)
CIE-LCHlch(35.12, 80.75, 317.21°)
OKLaboklab(46.75% 0.1349 -0.1556)
OKLCHoklch(46.75% 0.206 310.9)
XYZxyz(16.6212, 8.5586, 39.7981)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22AC #50AC22
analogous
#3922AC #7E22AC #AC2295
triadic
#7E22AC #AC7E22 #22AC7E
tetradic
#7E22AC #AC3922 #50AC22 #2295AC
square
#7E22AC #AC3922 #50AC22 #2295AC
split-complementary
#7E22AC #95AC22 #22AC39
monochromatic
#330E46 #591879 #7E22AC #A134D7 #B867E1

Accessibility & contrast

On white

7.74
#7E22AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E22AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22AC
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22AC#FFFFFF#000000##FFFFFF
##7E22AC1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#784568
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e22ac;
/* rgb */ color: rgb(126, 34, 172);
/* oklch */ color: oklch(46.8% 0.206 310.9);
Tailwind
colors: {
  custom: {
    50: '#a869c6',
    500: '#7e22ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e22ac;
$custom-light: #a869c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22ac",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 280,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46754,
    "c": 0.20591,
    "h": 310.9
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#7E22AC
secondary
#84C763
accent
#EA3E77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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