#7C22AA#7C22AA

#7C22AA is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.204 H 310.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7C22AA
RGBrgb(124, 34, 170)
HSLhsl(280, 67%, 40%)
HSVhsv(280, 80%, 67%)
CMYKcmyk(27.1%, 80%, 0%, 33.3%)
CIE-LABlab(34.66, 58.49, -54.42)
CIE-LCHlch(34.66, 79.89, 317.07°)
OKLaboklab(46.33% 0.1327 -0.1543)
OKLCHoklch(46.33% 0.204 310.7)
XYZxyz(16.1385, 8.3318, 38.7805)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22AA #50AA22
analogous
#3822AA #7C22AA #AA2294
triadic
#7C22AA #AA7C22 #22AA7C
tetradic
#7C22AA #AA3822 #50AA22 #2294AA
square
#7C22AA #AA3822 #50AA22 #2294AA
split-complementary
#7C22AA #94AA22 #22AA38
monochromatic
#320E44 #571877 #7C22AA #9F33D6 #B766E0

Accessibility & contrast

On white

7.88
#7C22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7C22AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22AA
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22AA#FFFFFF#000000##FFFFFF
##7C22AA1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c22aa;
/* rgb */ color: rgb(124, 34, 170);
/* oklch */ color: oklch(46.3% 0.204 310.7);
Tailwind
colors: {
  custom: {
    50: '#a769c4',
    500: '#7c22aa',
    950: '#000000',
  },
}
SCSS
$custom: #7c22aa;
$custom-light: #a769c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22aa",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 279.706,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.46325,
    "c": 0.20353,
    "h": 310.7
  },
  "luminance": 0.08331
}

Semantic roles & 50–950 ramp

primary
#7C22AA
secondary
#84C662
accent
#EA3E78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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