#7E22AD#7E22AD

#7E22AD is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.207 H 310.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7E22AD
RGBrgb(126, 34, 173)
HSLhsl(280, 67%, 41%)
HSVhsv(280, 80%, 68%)
CMYKcmyk(27.2%, 80.3%, 0%, 32.2%)
CIE-LABlab(35.20, 59.47, -55.33)
CIE-LCHlch(35.20, 81.23, 317.06°)
OKLaboklab(46.83% 0.1347 -0.157)
OKLCHoklch(46.83% 0.207 310.6)
XYZxyz(16.7176, 8.5972, 40.3058)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22AD #51AD22
analogous
#3822AD #7E22AD #AD2296
triadic
#7E22AD #AD7E22 #22AD7E
tetradic
#7E22AD #AD3822 #51AD22 #2296AD
square
#7E22AD #AD3822 #51AD22 #2296AD
split-complementary
#7E22AD #96AD22 #22AD38
monochromatic
#330E47 #59187A #7E22AD #A035D7 #B868E1

Accessibility & contrast

On white

7.72
#7E22AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E22AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22AD
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22AD#FFFFFF#000000##FFFFFF
##7E22AD1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#774568
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e22ad;
/* rgb */ color: rgb(126, 34, 173);
/* oklch */ color: oklch(46.8% 0.207 310.6);
Tailwind
colors: {
  custom: {
    50: '#a869c6',
    500: '#7e22ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e22ad;
$custom-light: #a869c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22ad",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 279.712,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46832,
    "c": 0.20682,
    "h": 310.6
  },
  "luminance": 0.08597
}

Semantic roles & 50–950 ramp

primary
#7E22AD
secondary
#85C764
accent
#EA3E78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22AD

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

Preview Lab → · Contrast checker → · Palette generator →

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