#7D22A2#7D22A2

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

Color values

HEX#7D22A2
RGBrgb(125, 34, 162)
HSLhsl(283, 65%, 38%)
HSVhsv(283, 79%, 64%)
CMYKcmyk(22.8%, 79%, 0%, 36.5%)
CIE-LABlab(34.22, 57.01, -50.32)
CIE-LCHlch(34.22, 76.04, 318.57°)
OKLaboklab(45.85% 0.1357 -0.1423)
OKLCHoklch(45.85% 0.197 313.6)
XYZxyz(15.5499, 8.1132, 34.9223)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22A2 #47A222
analogous
#3D22A2 #7D22A2 #A22287
triadic
#7D22A2 #A27D22 #22A27D
tetradic
#7D22A2 #A23D22 #47A222 #2287A2
square
#7D22A2 #A23D22 #47A222 #2287A2
split-complementary
#7D22A2 #87A222 #22A23D
monochromatic
#2F0D3D #56176F #7D22A2 #A32ED3 #BA61DE

Accessibility & contrast

On white

8.01
#7D22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7D22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D22A2
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22A2#FFFFFF#000000##FFFFFF
##7D22A21.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d22a2;
/* rgb */ color: rgb(125, 34, 162);
/* oklch */ color: oklch(45.9% 0.197 313.6);
Tailwind
colors: {
  custom: {
    50: '#a768be',
    500: '#7d22a2',
    950: '#000000',
  },
}
SCSS
$custom: #7d22a2;
$custom-light: #a768be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22a2",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 282.656,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45854,
    "c": 0.19659,
    "h": 313.6
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#7D22A2
secondary
#7AC35D
accent
#E84070
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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