#7A22AC#7A22AC

#7A22AC is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.2% C 0.205 H 309.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7A22AC
RGBrgb(122, 34, 172)
HSLhsl(278, 67%, 40%)
HSVhsv(278, 80%, 67%)
CMYKcmyk(29.1%, 80.2%, 0%, 32.5%)
CIE-LABlab(34.52, 58.57, -55.86)
CIE-LCHlch(34.52, 80.94, 316.35°)
OKLaboklab(46.21% 0.1295 -0.1587)
OKLCHoklch(46.21% 0.205 309.2)
XYZxyz(16.0429, 8.2605, 39.7710)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22AC #54AC22
analogous
#3522AC #7A22AC #AC2299
triadic
#7A22AC #AC7A22 #22AC7A
tetradic
#7A22AC #AC3522 #54AC22 #2299AC
square
#7A22AC #AC3522 #54AC22 #2299AC
split-complementary
#7A22AC #99AC22 #22AC35
monochromatic
#320E46 #561879 #7A22AC #9C34D7 #B567E1

Accessibility & contrast

On white

7.92
#7A22AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7A22AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22AC
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22AC#FFFFFF#000000##FFFFFF
##7A22AC1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#724668
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a22ac;
/* rgb */ color: rgb(122, 34, 172);
/* oklch */ color: oklch(46.2% 0.205 309.2);
Tailwind
colors: {
  custom: {
    50: '#a668c6',
    500: '#7a22ac',
    950: '#000000',
  },
}
SCSS
$custom: #7a22ac;
$custom-light: #a668c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22ac",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 278.261,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46211,
    "c": 0.20479,
    "h": 309.2
  },
  "luminance": 0.0826
}

Semantic roles & 50–950 ramp

primary
#7A22AC
secondary
#87C763
accent
#EA3E7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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