#7E22D5#7E22D5

#7E22D5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 50.2% C 0.243 H 300.3°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7E22D5
RGBrgb(126, 34, 213)
HSLhsl(271, 72%, 48%)
HSVhsv(271, 84%, 84%)
CMYKcmyk(40.8%, 84%, 0%, 16.5%)
CIE-LABlab(38.52, 68.14, -73.38)
CIE-LCHlch(38.52, 100.14, 312.88°)
OKLaboklab(50.16% 0.1229 -0.21)
OKLCHoklch(50.16% 0.243 300.3)
XYZxyz(21.1834, 10.3836, 63.8261)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22D5 #79D522
analogous
#2422D5 #7E22D5 #D522D2
triadic
#7E22D5 #D57E22 #22D57E
tetradic
#7E22D5 #D52422 #79D522 #22D2D5
square
#7E22D5 #D52422 #79D522 #22D2D5
split-complementary
#7E22D5 #D2D522 #22D524
monochromatic
#40116B #5F1AA0 #7E22D5 #9C51E3 #BA86EC

Accessibility & contrast

On white

6.83
#7E22D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7E22D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E22D5
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22D5#FFFFFF#000000##FFFFFF
##7E22D51.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ADA
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#695880
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e22d5;
/* rgb */ color: rgb(126, 34, 213);
/* oklch */ color: oklch(50.2% 0.243 300.3);
Tailwind
colors: {
  custom: {
    50: '#ac6be3',
    500: '#7e22d5',
    950: '#000000',
  },
}
SCSS
$custom: #7e22d5;
$custom-light: #ac6be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22d5",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 213
  },
  "hsl": {
    "h": 270.838,
    "s": 72.47,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50164,
    "c": 0.24329,
    "h": 300.3
  },
  "luminance": 0.10384
}

Semantic roles & 50–950 ramp

primary
#7E22D5
secondary
#A8D57E
accent
#EF3991
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110816
muted
#807A84

Preview Lab

Preview with #7E22D5

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

Preview Lab → · Contrast checker → · Palette generator →

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