#7A22A7#7A22A7

#7A22A7 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.200 H 310.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7A22A7
RGBrgb(122, 34, 167)
HSLhsl(280, 66%, 39%)
HSVhsv(280, 80%, 65%)
CMYKcmyk(26.9%, 79.6%, 0%, 34.5%)
CIE-LABlab(34.13, 57.50, -53.49)
CIE-LCHlch(34.13, 78.54, 317.07°)
OKLaboklab(45.82% 0.1306 -0.1517)
OKLCHoklch(45.82% 0.2 310.7)
XYZxyz(15.5718, 8.0720, 37.2895)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22A7 #4FA722
analogous
#3722A7 #7A22A7 #A72292
triadic
#7A22A7 #A77A22 #22A77A
tetradic
#7A22A7 #A73722 #4FA722 #2292A7
square
#7A22A7 #A73722 #4FA722 #2292A7
split-complementary
#7A22A7 #92A722 #22A737
monochromatic
#300D41 #551874 #7A22A7 #9E31D5 #B664DF

Accessibility & contrast

On white

8.03
#7A22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A22A7
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22A7#FFFFFF#000000##FFFFFF
##7A22A71.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#744365
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a22a7;
/* rgb */ color: rgb(122, 34, 167);
/* oklch */ color: oklch(45.8% 0.200 310.7);
Tailwind
colors: {
  custom: {
    50: '#a568c2',
    500: '#7a22a7',
    950: '#000000',
  },
}
SCSS
$custom: #7a22a7;
$custom-light: #a568c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22a7",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 279.699,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45819,
    "c": 0.20019,
    "h": 310.7
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#7A22A7
secondary
#82C560
accent
#E93F78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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