#7A22A2#7A22A2

#7A22A2 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.196 H 312.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7A22A2
RGBrgb(122, 34, 162)
HSLhsl(281, 65%, 38%)
HSVhsv(281, 79%, 64%)
CMYKcmyk(24.7%, 79%, 0%, 36.5%)
CIE-LABlab(33.75, 56.45, -51.09)
CIE-LCHlch(33.75, 76.14, 317.85°)
OKLaboklab(45.43% 0.1317 -0.1446)
OKLCHoklch(45.43% 0.196 312.3)
XYZxyz(15.1185, 7.8907, 34.9021)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22A2 #4AA222
analogous
#3A22A2 #7A22A2 #A2228A
triadic
#7A22A2 #A27A22 #22A27A
tetradic
#7A22A2 #A23A22 #4AA222 #228AA2
square
#7A22A2 #A23A22 #4AA222 #228AA2
split-complementary
#7A22A2 #8AA222 #22A23A
monochromatic
#2E0D3D #54176F #7A22A2 #A02ED3 #B761DE

Accessibility & contrast

On white

8.15
#7A22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7A22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22A2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22A2#FFFFFF#000000##FFFFFF
##7A22A21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0A519F
Tritanopia (blue-blind)
#754162
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a22a2;
/* rgb */ color: rgb(122, 34, 162);
/* oklch */ color: oklch(45.4% 0.196 312.3);
Tailwind
colors: {
  custom: {
    50: '#a568be',
    500: '#7a22a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a22a2;
$custom-light: #a568be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22a2",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 281.25,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45435,
    "c": 0.19562,
    "h": 312.3
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#7A22A2
secondary
#7DC35D
accent
#E84074
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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