#7C22A8#7C22A8

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

Color values

HEX#7C22A8
RGBrgb(124, 34, 168)
HSLhsl(280, 66%, 40%)
HSVhsv(280, 80%, 66%)
CMYKcmyk(26.2%, 79.8%, 0%, 34.1%)
CIE-LABlab(34.51, 58.07, -53.46)
CIE-LCHlch(34.51, 78.93, 317.36°)
OKLaboklab(46.17% 0.1331 -0.1515)
OKLCHoklch(46.17% 0.202 311.3)
XYZxyz(15.9507, 8.2567, 37.7916)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22A8 #4EA822
analogous
#3922A8 #7C22A8 #A82291
triadic
#7C22A8 #A87C22 #22A87C
tetradic
#7C22A8 #A83922 #4EA822 #2291A8
square
#7C22A8 #A83922 #4EA822 #2291A8
split-complementary
#7C22A8 #91A822 #22A839
monochromatic
#310D42 #561875 #7C22A8 #A032D5 #B765E0

Accessibility & contrast

On white

7.92
#7C22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22A8
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22A8#FFFFFF#000000##FFFFFF
##7C22A81.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#764365
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c22a8;
/* rgb */ color: rgb(124, 34, 168);
/* oklch */ color: oklch(46.2% 0.202 311.3);
Tailwind
colors: {
  custom: {
    50: '#a769c3',
    500: '#7c22a8',
    950: '#000000',
  },
}
SCSS
$custom: #7c22a8;
$custom-light: #a769c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22a8",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 280.299,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46171,
    "c": 0.2017,
    "h": 311.3
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#7C22A8
secondary
#82C561
accent
#E93F77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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