#7B22A4#7B22A4

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

Color values

HEX#7B22A4
RGBrgb(123, 34, 164)
HSLhsl(281, 66%, 39%)
HSVhsv(281, 79%, 64%)
CMYKcmyk(25%, 79.3%, 0%, 35.7%)
CIE-LABlab(34.06, 57.05, -51.80)
CIE-LCHlch(34.06, 77.06, 317.76°)
OKLaboklab(45.73% 0.1326 -0.1467)
OKLCHoklch(45.73% 0.198 312.1)
XYZxyz(15.4400, 8.0358, 35.8525)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22A4 #4BA422
analogous
#3A22A4 #7B22A4 #A4228C
triadic
#7B22A4 #A47B22 #22A47B
tetradic
#7B22A4 #A43A22 #4BA422 #228CA4
square
#7B22A4 #A43A22 #4BA422 #228CA4
split-complementary
#7B22A4 #8CA422 #22A43A
monochromatic
#2F0D3F #551771 #7B22A4 #A02FD4 #B762DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B22A4#FFFFFF#000000##FFFFFF
##7B22A41.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)
#004CA8
Deuteranopia (green-blind)
#0652A1
Tritanopia (blue-blind)
#764263
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b22a4;
/* rgb */ color: rgb(123, 34, 164);
/* oklch */ color: oklch(45.7% 0.198 312.1);
Tailwind
colors: {
  custom: {
    50: '#a668c0',
    500: '#7b22a4',
    950: '#000000',
  },
}
SCSS
$custom: #7b22a4;
$custom-light: #a668c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22a4",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 281.077,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45726,
    "c": 0.19776,
    "h": 312.1
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#7B22A4
secondary
#7EC45E
accent
#E93F75
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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