#7A22A6#7A22A6

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

Color values

HEX#7A22A6
RGBrgb(122, 34, 166)
HSLhsl(280, 66%, 39%)
HSVhsv(280, 80%, 65%)
CMYKcmyk(26.5%, 79.5%, 0%, 34.9%)
CIE-LABlab(34.06, 57.29, -53.02)
CIE-LCHlch(34.06, 78.06, 317.22°)
OKLaboklab(45.74% 0.1309 -0.1503)
OKLCHoklch(45.74% 0.199 311)
XYZxyz(15.4797, 8.0352, 36.8045)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22A6 #4EA622
analogous
#3822A6 #7A22A6 #A62290
triadic
#7A22A6 #A67A22 #22A67A
tetradic
#7A22A6 #A63822 #4EA622 #2290A6
square
#7A22A6 #A63822 #4EA622 #2290A6
split-complementary
#7A22A6 #90A622 #22A638
monochromatic
#2F0D40 #551873 #7A22A6 #9E30D5 #B663DF

Accessibility & contrast

On white

8.06
#7A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7A22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22A6
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22A6#FFFFFF#000000##FFFFFF
##7A22A61.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#744364
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a22a6;
/* rgb */ color: rgb(122, 34, 166);
/* oklch */ color: oklch(45.7% 0.199 311.0);
Tailwind
colors: {
  custom: {
    50: '#a568c1',
    500: '#7a22a6',
    950: '#000000',
  },
}
SCSS
$custom: #7a22a6;
$custom-light: #a568c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22a6",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 280,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45741,
    "c": 0.19928,
    "h": 311
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#7A22A6
secondary
#81C45F
accent
#E93F78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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