#7C22A2#7C22A2

#7C22A2 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.196 H 313.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7C22A2
RGBrgb(124, 34, 162)
HSLhsl(282, 65%, 38%)
HSVhsv(282, 79%, 64%)
CMYKcmyk(23.5%, 79%, 0%, 36.5%)
CIE-LABlab(34.06, 56.82, -50.58)
CIE-LCHlch(34.06, 76.07, 318.33°)
OKLaboklab(45.71% 0.1343 -0.1431)
OKLCHoklch(45.71% 0.196 313.2)
XYZxyz(15.4046, 8.0383, 34.9155)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22A2 #48A222
analogous
#3C22A2 #7C22A2 #A22288
triadic
#7C22A2 #A27C22 #22A27C
tetradic
#7C22A2 #A23C22 #48A222 #2288A2
square
#7C22A2 #A23C22 #48A222 #2288A2
split-complementary
#7C22A2 #88A222 #22A23C
monochromatic
#2F0D3D #55176F #7C22A2 #A22ED3 #B961DE

Accessibility & contrast

On white

8.05
#7C22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7C22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22A2
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22A2#FFFFFF#000000##FFFFFF
##7C22A21.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#11529F
Tritanopia (blue-blind)
#784162
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c22a2;
/* rgb */ color: rgb(124, 34, 162);
/* oklch */ color: oklch(45.7% 0.196 313.2);
Tailwind
colors: {
  custom: {
    50: '#a668be',
    500: '#7c22a2',
    950: '#000000',
  },
}
SCSS
$custom: #7c22a2;
$custom-light: #a668be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22a2",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 282.188,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45714,
    "c": 0.19626,
    "h": 313.2
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

primary
#7C22A2
secondary
#7BC35D
accent
#E84072
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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