#7C22AD#7C22AD

#7C22AD is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.6% C 0.206 H 309.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7C22AD
RGBrgb(124, 34, 173)
HSLhsl(279, 67%, 41%)
HSVhsv(279, 80%, 68%)
CMYKcmyk(28.3%, 80.3%, 0%, 32.2%)
CIE-LABlab(34.90, 59.12, -55.84)
CIE-LCHlch(34.90, 81.32, 316.64°)
OKLaboklab(46.56% 0.132 -0.1585)
OKLCHoklch(46.56% 0.206 309.8)
XYZxyz(16.4255, 8.4466, 40.2921)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22AD #53AD22
analogous
#3622AD #7C22AD #AD2298
triadic
#7C22AD #AD7C22 #22AD7C
tetradic
#7C22AD #AD3622 #53AD22 #2298AD
square
#7C22AD #AD3622 #53AD22 #2298AD
split-complementary
#7C22AD #98AD22 #22AD36
monochromatic
#330E47 #57187A #7C22AD #9E35D7 #B768E1

Accessibility & contrast

On white

7.81
#7C22AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7C22AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22AD
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22AD#FFFFFF#000000##FFFFFF
##7C22AD1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#754668
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c22ad;
/* rgb */ color: rgb(124, 34, 173);
/* oklch */ color: oklch(46.6% 0.206 309.8);
Tailwind
colors: {
  custom: {
    50: '#a769c6',
    500: '#7c22ad',
    950: '#000000',
  },
}
SCSS
$custom: #7c22ad;
$custom-light: #a769c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22ad",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 278.849,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4656,
    "c": 0.20626,
    "h": 309.8
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#7C22AD
secondary
#87C764
accent
#EA3E7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C22AD

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

Preview Lab → · Contrast checker → · Palette generator →

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