#7A22AB#7A22AB

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

Color values

HEX#7A22AB
RGBrgb(122, 34, 171)
HSLhsl(279, 67%, 40%)
HSVhsv(279, 80%, 67%)
CMYKcmyk(28.7%, 80.1%, 0%, 32.9%)
CIE-LABlab(34.44, 58.35, -55.39)
CIE-LCHlch(34.44, 80.46, 316.49°)
OKLaboklab(46.13% 0.1297 -0.1573)
OKLCHoklch(46.13% 0.204 309.5)
XYZxyz(15.9473, 8.2222, 39.2671)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22AB #53AB22
analogous
#3522AB #7A22AB #AB2297
triadic
#7A22AB #AB7A22 #22AB7A
tetradic
#7A22AB #AB3522 #53AB22 #2297AB
square
#7A22AB #AB3522 #53AB22 #2297AB
split-complementary
#7A22AB #97AB22 #22AB35
monochromatic
#310E45 #561878 #7A22AB #9C34D7 #B567E1

Accessibility & contrast

On white

7.94
#7A22AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A22AB
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22AB#FFFFFF#000000##FFFFFF
##7A22AB1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#734567
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a22ab;
/* rgb */ color: rgb(122, 34, 171);
/* oklch */ color: oklch(46.1% 0.204 309.5);
Tailwind
colors: {
  custom: {
    50: '#a668c5',
    500: '#7a22ab',
    950: '#000000',
  },
}
SCSS
$custom: #7a22ab;
$custom-light: #a668c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22ab",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 171
  },
  "hsl": {
    "h": 278.54,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46132,
    "c": 0.20387,
    "h": 309.5
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#7A22AB
secondary
#86C663
accent
#EA3E7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A22AB

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

Preview Lab → · Contrast checker → · Palette generator →

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