#7A22D5#7A22D5

#7A22D5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.7% C 0.243 H 298.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7A22D5
RGBrgb(122, 34, 213)
HSLhsl(269, 72%, 48%)
HSVhsv(269, 84%, 84%)
CMYKcmyk(42.7%, 84%, 0%, 16.5%)
CIE-LABlab(38.00, 67.63, -74.26)
CIE-LCHlch(38.00, 100.44, 312.32°)
OKLaboklab(49.69% 0.117 -0.2127)
OKLCHoklch(49.69% 0.243 298.8)
XYZxyz(20.6052, 10.0854, 63.7990)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22D5 #7DD522
analogous
#2223D5 #7A22D5 #D322D5
triadic
#7A22D5 #D57A22 #22D57A
tetradic
#7A22D5 #D52223 #7DD522 #22D5D3
square
#7A22D5 #D52223 #7DD522 #22D5D3
split-complementary
#7A22D5 #D5D322 #23D522
monochromatic
#3E116B #5C1AA0 #7A22D5 #9951E3 #B886EC

Accessibility & contrast

On white

6.96
#7A22D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7A22D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A22D5
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22D5#FFFFFF#000000##FFFFFF
##7A22D51.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059DA
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#635880
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a22d5;
/* rgb */ color: rgb(122, 34, 213);
/* oklch */ color: oklch(49.7% 0.243 298.8);
Tailwind
colors: {
  custom: {
    50: '#a96be3',
    500: '#7a22d5',
    950: '#000000',
  },
}
SCSS
$custom: #7a22d5;
$custom-light: #a96be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22d5",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 213
  },
  "hsl": {
    "h": 269.497,
    "s": 72.47,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49688,
    "c": 0.24275,
    "h": 298.8
  },
  "luminance": 0.10086
}

Semantic roles & 50–950 ramp

primary
#7A22D5
secondary
#AAD57E
accent
#EF3995
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7A22D5

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

Preview Lab → · Contrast checker → · Palette generator →

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