#7A22A9#7A22A9

#7A22A9 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.0% C 0.202 H 310.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7A22A9
RGBrgb(122, 34, 169)
HSLhsl(279, 67%, 40%)
HSVhsv(279, 80%, 66%)
CMYKcmyk(27.8%, 79.9%, 0%, 33.7%)
CIE-LABlab(34.29, 57.93, -54.44)
CIE-LCHlch(34.29, 79.50, 316.78°)
OKLaboklab(45.98% 0.1302 -0.1545)
OKLCHoklch(45.98% 0.202 310.1)
XYZxyz(15.7581, 8.1466, 38.2707)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22A9 #51A922
analogous
#3722A9 #7A22A9 #A92295
triadic
#7A22A9 #A97A22 #22A97A
tetradic
#7A22A9 #A93722 #51A922 #2295A9
square
#7A22A9 #A93722 #51A922 #2295A9
split-complementary
#7A22A9 #95A922 #22A937
monochromatic
#300D43 #551876 #7A22A9 #9D32D6 #B565E0

Accessibility & contrast

On white

7.99
#7A22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22A9
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22A9#FFFFFF#000000##FFFFFF
##7A22A91.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#734466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a22a9;
/* rgb */ color: rgb(122, 34, 169);
/* oklch */ color: oklch(46.0% 0.202 310.1);
Tailwind
colors: {
  custom: {
    50: '#a568c3',
    500: '#7a22a9',
    950: '#000000',
  },
}
SCSS
$custom: #7a22a9;
$custom-light: #a568c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22a9",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 279.111,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45975,
    "c": 0.20203,
    "h": 310.1
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#7A22A9
secondary
#84C561
accent
#E93E7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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