#7E22C2#7E22C2

#7E22C2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.5% C 0.226 H 304.8°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7E22C2
RGBrgb(126, 34, 194)
HSLhsl(275, 70%, 45%)
HSVhsv(275, 82%, 76%)
CMYKcmyk(35.1%, 82.5%, 0%, 23.9%)
CIE-LABlab(36.88, 63.96, -65.01)
CIE-LCHlch(36.88, 91.20, 314.53°)
OKLaboklab(48.53% 0.129 -0.1854)
OKLCHoklch(48.53% 0.226 304.8)
XYZxyz(18.9116, 9.4748, 51.8610)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22C2 #66C222
analogous
#2E22C2 #7E22C2 #C222B6
triadic
#7E22C2 #C27E22 #22C27E
tetradic
#7E22C2 #C22E22 #66C222 #22B6C2
square
#7E22C2 #C22E22 #66C222 #22B6C2
split-complementary
#7E22C2 #B6C222 #22C22E
monochromatic
#3A105A #5C198E #7E22C2 #9C43DE #B877E7

Accessibility & contrast

On white

7.25
#7E22C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7E22C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22C2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22C2#FFFFFF#000000##FFFFFF
##7E22C21.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#714F74
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e22c2;
/* rgb */ color: rgb(126, 34, 194);
/* oklch */ color: oklch(48.5% 0.226 304.8);
Tailwind
colors: {
  custom: {
    50: '#aa6ad6',
    500: '#7e22c2',
    950: '#000000',
  },
}
SCSS
$custom: #7e22c2;
$custom-light: #aa6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22c2",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 194
  },
  "hsl": {
    "h": 274.5,
    "s": 70.175,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4853,
    "c": 0.2259,
    "h": 304.8
  },
  "luminance": 0.09475
}

Semantic roles & 50–950 ramp

primary
#7E22C2
secondary
#99CF71
accent
#ED3B87
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7E22C2

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

Preview Lab → · Contrast checker → · Palette generator →

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