#7C22A9#7C22A9

#7C22A9 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.2% C 0.203 H 311.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7C22A9
RGBrgb(124, 34, 169)
HSLhsl(280, 67%, 40%)
HSVhsv(280, 80%, 66%)
CMYKcmyk(26.6%, 79.9%, 0%, 33.7%)
CIE-LABlab(34.59, 58.28, -53.94)
CIE-LCHlch(34.59, 79.41, 317.21°)
OKLaboklab(46.25% 0.1329 -0.1529)
OKLCHoklch(46.25% 0.203 311)
XYZxyz(16.0443, 8.2941, 38.2842)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22A9 #4FA922
analogous
#3922A9 #7C22A9 #A92292
triadic
#7C22A9 #A97C22 #22A97C
tetradic
#7C22A9 #A93922 #4FA922 #2292A9
square
#7C22A9 #A93922 #4FA922 #2292A9
split-complementary
#7C22A9 #92A922 #22A939
monochromatic
#310D43 #571876 #7C22A9 #9F32D6 #B765E0

Accessibility & contrast

On white

7.90
#7C22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7C22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22A9
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22A9#FFFFFF#000000##FFFFFF
##7C22A91.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#764466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c22a9;
/* rgb */ color: rgb(124, 34, 169);
/* oklch */ color: oklch(46.2% 0.203 311.0);
Tailwind
colors: {
  custom: {
    50: '#a769c3',
    500: '#7c22a9',
    950: '#000000',
  },
}
SCSS
$custom: #7c22a9;
$custom-light: #a769c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22a9",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 280,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46248,
    "c": 0.20261,
    "h": 311
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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