#7E22A6#7E22A6

#7E22A6 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.3% C 0.201 H 312.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7E22A6
RGBrgb(126, 34, 166)
HSLhsl(282, 66%, 39%)
HSVhsv(282, 80%, 65%)
CMYKcmyk(24.1%, 79.5%, 0%, 34.9%)
CIE-LABlab(34.67, 58.02, -52.00)
CIE-LCHlch(34.67, 77.91, 318.13°)
OKLaboklab(46.29% 0.1362 -0.1472)
OKLCHoklch(46.29% 0.201 312.8)
XYZxyz(16.0579, 8.3333, 36.8316)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22A6 #4AA622
analogous
#3C22A6 #7E22A6 #A6228C
triadic
#7E22A6 #A67E22 #22A67E
tetradic
#7E22A6 #A63C22 #4AA622 #228CA6
square
#7E22A6 #A63C22 #4AA622 #228CA6
split-complementary
#7E22A6 #8CA622 #22A63C
monochromatic
#310D40 #571873 #7E22A6 #A330D5 #BA63DF

Accessibility & contrast

On white

7.88
#7E22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E22A6
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22A6#FFFFFF#000000##FFFFFF
##7E22A61.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0B53A3
Tritanopia (blue-blind)
#794264
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e22a6;
/* rgb */ color: rgb(126, 34, 166);
/* oklch */ color: oklch(46.3% 0.201 312.8);
Tailwind
colors: {
  custom: {
    50: '#a869c1',
    500: '#7e22a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e22a6;
$custom-light: #a869c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22a6",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 281.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46295,
    "c": 0.20051,
    "h": 312.8
  },
  "luminance": 0.08333
}

Semantic roles & 50–950 ramp

primary
#7E22A6
secondary
#7EC45F
accent
#E93F72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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