#7A22A5#7A22A5

#7A22A5 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.198 H 311.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7A22A5
RGBrgb(122, 34, 165)
HSLhsl(280, 66%, 39%)
HSVhsv(280, 79%, 65%)
CMYKcmyk(26.1%, 79.4%, 0%, 35.3%)
CIE-LABlab(33.98, 57.08, -52.54)
CIE-LCHlch(33.98, 77.58, 317.37°)
OKLaboklab(45.66% 0.1311 -0.1489)
OKLCHoklch(45.66% 0.198 311.4)
XYZxyz(15.3883, 7.9986, 36.3233)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22A5 #4DA522
analogous
#3822A5 #7A22A5 #A5228F
triadic
#7A22A5 #A57A22 #22A57A
tetradic
#7A22A5 #A53822 #4DA522 #228FA5
square
#7A22A5 #A53822 #4DA522 #228FA5
split-complementary
#7A22A5 #8FA522 #22A538
monochromatic
#2F0D40 #541872 #7A22A5 #9E30D4 #B663DF

Accessibility & contrast

On white

8.08
#7A22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7A22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22A5
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22A5#FFFFFF#000000##FFFFFF
##7A22A51.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#744264
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a22a5;
/* rgb */ color: rgb(122, 34, 165);
/* oklch */ color: oklch(45.7% 0.198 311.4);
Tailwind
colors: {
  custom: {
    50: '#a568c1',
    500: '#7a22a5',
    950: '#000000',
  },
}
SCSS
$custom: #7a22a5;
$custom-light: #a568c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22a5",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 280.305,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45664,
    "c": 0.19836,
    "h": 311.4
  },
  "luminance": 0.07998
}

Semantic roles & 50–950 ramp

primary
#7A22A5
secondary
#80C45F
accent
#E93F77
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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