#7A22AA#7A22AA

#7A22AA is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.203 H 309.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7A22AA
RGBrgb(122, 34, 170)
HSLhsl(279, 67%, 40%)
HSVhsv(279, 80%, 67%)
CMYKcmyk(28.2%, 80%, 0%, 33.3%)
CIE-LABlab(34.36, 58.14, -54.92)
CIE-LCHlch(34.36, 79.98, 316.63°)
OKLaboklab(46.05% 0.13 -0.1559)
OKLCHoklch(46.05% 0.203 309.8)
XYZxyz(15.8523, 8.1842, 38.7670)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22AA #52AA22
analogous
#3622AA #7A22AA #AA2296
triadic
#7A22AA #AA7A22 #22AA7A
tetradic
#7A22AA #AA3622 #52AA22 #2296AA
square
#7A22AA #AA3622 #52AA22 #2296AA
split-complementary
#7A22AA #96AA22 #22AA36
monochromatic
#310E44 #551877 #7A22AA #9D33D6 #B566E0

Accessibility & contrast

On white

7.96
#7A22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A22AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22AA
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22AA#FFFFFF#000000##FFFFFF
##7A22AA1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#734566
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a22aa;
/* rgb */ color: rgb(122, 34, 170);
/* oklch */ color: oklch(46.1% 0.203 309.8);
Tailwind
colors: {
  custom: {
    50: '#a668c4',
    500: '#7a22aa',
    950: '#000000',
  },
}
SCSS
$custom: #7a22aa;
$custom-light: #a668c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22aa",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 278.824,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.46053,
    "c": 0.20295,
    "h": 309.8
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#7A22AA
secondary
#85C662
accent
#EA3E7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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