#7E22AF#7E22AF

#7E22AF is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.209 H 310.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7E22AF
RGBrgb(126, 34, 175)
HSLhsl(279, 67%, 41%)
HSVhsv(279, 81%, 69%)
CMYKcmyk(28%, 80.6%, 0%, 31.4%)
CIE-LABlab(35.35, 59.89, -56.28)
CIE-LCHlch(35.35, 82.18, 316.78°)
OKLaboklab(46.99% 0.1342 -0.1597)
OKLCHoklch(46.99% 0.209 310)
XYZxyz(16.9125, 8.6752, 41.3327)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22AF #53AF22
analogous
#3722AF #7E22AF #AF2299
triadic
#7E22AF #AF7E22 #22AF7E
tetradic
#7E22AF #AF3722 #53AF22 #2299AF
square
#7E22AF #AF3722 #53AF22 #2299AF
split-complementary
#7E22AF #99AF22 #22AF37
monochromatic
#340E49 #59187C #7E22AF #A036D8 #B869E2

Accessibility & contrast

On white

7.68
#7E22AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E22AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22AF
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22AF#FFFFFF#000000##FFFFFF
##7E22AF1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#774669
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e22af;
/* rgb */ color: rgb(126, 34, 175);
/* oklch */ color: oklch(47.0% 0.209 310.0);
Tailwind
colors: {
  custom: {
    50: '#a969c8',
    500: '#7e22af',
    950: '#000000',
  },
}
SCSS
$custom: #7e22af;
$custom-light: #a969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22af",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 279.149,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46988,
    "c": 0.20863,
    "h": 310
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

primary
#7E22AF
secondary
#87C865
accent
#EA3D7A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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