#7C22A3#7C22A3

#7C22A3 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.197 H 312.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7C22A3
RGBrgb(124, 34, 163)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 64%)
CMYKcmyk(23.9%, 79.1%, 0%, 36.1%)
CIE-LABlab(34.14, 57.03, -51.06)
CIE-LCHlch(34.14, 76.55, 318.16°)
OKLaboklab(45.79% 0.1342 -0.1445)
OKLCHoklch(45.79% 0.197 312.9)
XYZxyz(15.4939, 8.0740, 35.3855)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22A3 #49A322
analogous
#3B22A3 #7C22A3 #A32289
triadic
#7C22A3 #A37C22 #22A37C
tetradic
#7C22A3 #A33B22 #49A322 #2289A3
square
#7C22A3 #A33B22 #49A322 #2289A3
split-complementary
#7C22A3 #89A322 #22A33B
monochromatic
#2F0D3E #551770 #7C22A3 #A22FD4 #B861DE

Accessibility & contrast

On white

8.03
#7C22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C22A3
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22A3#FFFFFF#000000##FFFFFF
##7C22A31.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#0E52A0
Tritanopia (blue-blind)
#784162
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c22a3;
/* rgb */ color: rgb(124, 34, 163);
/* oklch */ color: oklch(45.8% 0.197 312.9);
Tailwind
colors: {
  custom: {
    50: '#a668bf',
    500: '#7c22a3',
    950: '#000000',
  },
}
SCSS
$custom: #7c22a3;
$custom-light: #a668bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22a3",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 281.86,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45789,
    "c": 0.19716,
    "h": 312.9
  },
  "luminance": 0.08073
}

Semantic roles & 50–950 ramp

primary
#7C22A3
secondary
#7CC35E
accent
#E83F72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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