#7D22A4#7D22A4

#7D22A4 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.198 H 313.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7D22A4
RGBrgb(125, 34, 164)
HSLhsl(282, 66%, 39%)
HSVhsv(282, 79%, 64%)
CMYKcmyk(23.8%, 79.3%, 0%, 35.7%)
CIE-LABlab(34.37, 57.42, -51.29)
CIE-LCHlch(34.37, 76.99, 318.23°)
OKLaboklab(46% 0.1353 -0.1451)
OKLCHoklch(46% 0.198 313)
XYZxyz(15.7291, 8.1849, 35.8660)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22A4 #49A422
analogous
#3C22A4 #7D22A4 #A4228A
triadic
#7D22A4 #A47D22 #22A47D
tetradic
#7D22A4 #A43C22 #49A422 #228AA4
square
#7D22A4 #A43C22 #49A422 #228AA4
split-complementary
#7D22A4 #8AA422 #22A43C
monochromatic
#300D3F #561771 #7D22A4 #A32FD4 #B962DE

Accessibility & contrast

On white

7.96
#7D22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7D22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D22A4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22A4#FFFFFF#000000##FFFFFF
##7D22A41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0E53A1
Tritanopia (blue-blind)
#794163
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d22a4;
/* rgb */ color: rgb(125, 34, 164);
/* oklch */ color: oklch(46.0% 0.198 313.0);
Tailwind
colors: {
  custom: {
    50: '#a768c0',
    500: '#7d22a4',
    950: '#000000',
  },
}
SCSS
$custom: #7d22a4;
$custom-light: #a768c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22a4",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 282,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46004,
    "c": 0.19839,
    "h": 313
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#7D22A4
secondary
#7DC45E
accent
#E93F72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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