#7A22C1#7A22C1

#7A22C1 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.224 H 303.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7A22C1
RGBrgb(122, 34, 193)
HSLhsl(273, 70%, 45%)
HSVhsv(273, 82%, 76%)
CMYKcmyk(36.8%, 82.4%, 0%, 24.3%)
CIE-LABlab(36.24, 63.14, -65.51)
CIE-LCHlch(36.24, 90.99, 313.95°)
OKLaboklab(47.94% 0.1237 -0.187)
OKLCHoklch(47.94% 0.224 303.5)
XYZxyz(18.2214, 9.1319, 51.2444)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22C1 #69C122
analogous
#2B22C1 #7A22C1 #C122B8
triadic
#7A22C1 #C17A22 #22C17A
tetradic
#7A22C1 #C12B22 #69C122 #22B8C1
square
#7A22C1 #C12B22 #69C122 #22B8C1
split-complementary
#7A22C1 #B8C122 #22C12B
monochromatic
#381059 #59198D #7A22C1 #9842DE #B576E7

Accessibility & contrast

On white

7.43
#7A22C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7A22C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22C1
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22C1#FFFFFF#000000##FFFFFF
##7A22C11.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#0055BE
Tritanopia (blue-blind)
#6B4F74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a22c1;
/* rgb */ color: rgb(122, 34, 193);
/* oklch */ color: oklch(47.9% 0.224 303.5);
Tailwind
colors: {
  custom: {
    50: '#a76ad5',
    500: '#7a22c1',
    950: '#000000',
  },
}
SCSS
$custom: #7a22c1;
$custom-light: #a76ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22c1",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 193
  },
  "hsl": {
    "h": 273.208,
    "s": 70.044,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.22418,
    "h": 303.5
  },
  "luminance": 0.09132
}

Semantic roles & 50–950 ramp

primary
#7A22C1
secondary
#9ACE71
accent
#ED3B8A
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7A22C1

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

Preview Lab → · Contrast checker → · Palette generator →

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