#7C22A5#7C22A5

#7C22A5 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.199 H 312.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7C22A5
RGBrgb(124, 34, 165)
HSLhsl(281, 66%, 39%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(24.8%, 79.4%, 0%, 35.3%)
CIE-LABlab(34.29, 57.44, -52.03)
CIE-LCHlch(34.29, 77.50, 317.83°)
OKLaboklab(45.94% 0.1337 -0.1473)
OKLCHoklch(45.94% 0.199 312.2)
XYZxyz(15.6745, 8.1462, 36.3367)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22A5 #4BA522
analogous
#3A22A5 #7C22A5 #A5228D
triadic
#7C22A5 #A57C22 #22A57C
tetradic
#7C22A5 #A53A22 #4BA522 #228DA5
square
#7C22A5 #A53A22 #4BA522 #228DA5
split-complementary
#7C22A5 #8DA522 #22A53A
monochromatic
#300D40 #561872 #7C22A5 #A130D4 #B863DF

Accessibility & contrast

On white

7.99
#7C22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7C22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22A5
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22A5#FFFFFF#000000##FFFFFF
##7C22A51.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0752A2
Tritanopia (blue-blind)
#774264
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c22a5;
/* rgb */ color: rgb(124, 34, 165);
/* oklch */ color: oklch(45.9% 0.199 312.2);
Tailwind
colors: {
  custom: {
    50: '#a768c0',
    500: '#7c22a5',
    950: '#000000',
  },
}
SCSS
$custom: #7c22a5;
$custom-light: #a768c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22a5",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 281.221,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45941,
    "c": 0.19898,
    "h": 312.2
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#7C22A5
secondary
#7FC45F
accent
#E93F74
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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