#7D22A6#7D22A6

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

Color values

HEX#7D22A6
RGBrgb(125, 34, 166)
HSLhsl(281, 66%, 39%)
HSVhsv(281, 80%, 65%)
CMYKcmyk(24.7%, 79.5%, 0%, 34.9%)
CIE-LABlab(34.51, 57.83, -52.25)
CIE-LCHlch(34.51, 77.94, 317.90°)
OKLaboklab(46.16% 0.1349 -0.1479)
OKLCHoklch(46.16% 0.2 312.3)
XYZxyz(15.9111, 8.2577, 36.8247)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22A6 #4BA622
analogous
#3B22A6 #7D22A6 #A6228D
triadic
#7D22A6 #A67D22 #22A67D
tetradic
#7D22A6 #A63B22 #4BA622 #228DA6
square
#7D22A6 #A63B22 #4BA622 #228DA6
split-complementary
#7D22A6 #8DA622 #22A63B
monochromatic
#310D40 #571873 #7D22A6 #A230D5 #B963DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D22A6#FFFFFF#000000##FFFFFF
##7D22A61.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)
#004DAA
Deuteranopia (green-blind)
#0753A3
Tritanopia (blue-blind)
#784264
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d22a6;
/* rgb */ color: rgb(125, 34, 166);
/* oklch */ color: oklch(46.2% 0.200 312.3);
Tailwind
colors: {
  custom: {
    50: '#a769c1',
    500: '#7d22a6',
    950: '#000000',
  },
}
SCSS
$custom: #7d22a6;
$custom-light: #a769c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22a6",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 281.364,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46156,
    "c": 0.20019,
    "h": 312.3
  },
  "luminance": 0.08257
}

Semantic roles & 50–950 ramp

primary
#7D22A6
secondary
#7FC45F
accent
#E93F74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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