#7A22A8#7A22A8

#7A22A8 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.201 H 310.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7A22A8
RGBrgb(122, 34, 168)
HSLhsl(279, 66%, 40%)
HSVhsv(279, 80%, 66%)
CMYKcmyk(27.4%, 79.8%, 0%, 34.1%)
CIE-LABlab(34.21, 57.72, -53.97)
CIE-LCHlch(34.21, 79.02, 316.92°)
OKLaboklab(45.9% 0.1304 -0.1531)
OKLCHoklch(45.9% 0.201 310.4)
XYZxyz(15.6646, 8.1091, 37.7782)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22A8 #50A822
analogous
#3722A8 #7A22A8 #A82293
triadic
#7A22A8 #A87A22 #22A87A
tetradic
#7A22A8 #A83722 #50A822 #2293A8
square
#7A22A8 #A83722 #50A822 #2293A8
split-complementary
#7A22A8 #93A822 #22A837
monochromatic
#300D42 #551875 #7A22A8 #9D32D5 #B565E0

Accessibility & contrast

On white

8.01
#7A22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7A22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22A8
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22A8#FFFFFF#000000##FFFFFF
##7A22A81.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#744465
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a22a8;
/* rgb */ color: rgb(122, 34, 168);
/* oklch */ color: oklch(45.9% 0.201 310.4);
Tailwind
colors: {
  custom: {
    50: '#a568c3',
    500: '#7a22a8',
    950: '#000000',
  },
}
SCSS
$custom: #7a22a8;
$custom-light: #a568c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22a8",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 279.403,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45897,
    "c": 0.20111,
    "h": 310.4
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#7A22A8
secondary
#83C561
accent
#E93F79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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