#7D22A5#7D22A5

#7D22A5 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.199 H 312.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7D22A5
RGBrgb(125, 34, 165)
HSLhsl(282, 66%, 39%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(24.2%, 79.4%, 0%, 35.3%)
CIE-LABlab(34.44, 57.63, -51.77)
CIE-LCHlch(34.44, 77.47, 318.06°)
OKLaboklab(46.08% 0.1351 -0.1465)
OKLCHoklch(46.08% 0.199 312.7)
XYZxyz(15.8198, 8.2211, 36.3435)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22A5 #4AA522
analogous
#3B22A5 #7D22A5 #A5228C
triadic
#7D22A5 #A57D22 #22A57D
tetradic
#7D22A5 #A53B22 #4AA522 #228CA5
square
#7D22A5 #A53B22 #4AA522 #228CA5
split-complementary
#7D22A5 #8CA522 #22A53B
monochromatic
#300D40 #571872 #7D22A5 #A230D4 #B963DF

Accessibility & contrast

On white

7.94
#7D22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D22A5
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22A5#FFFFFF#000000##FFFFFF
##7D22A51.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0B53A2
Tritanopia (blue-blind)
#784264
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d22a5;
/* rgb */ color: rgb(125, 34, 165);
/* oklch */ color: oklch(46.1% 0.199 312.7);
Tailwind
colors: {
  custom: {
    50: '#a769c0',
    500: '#7d22a5',
    950: '#000000',
  },
}
SCSS
$custom: #7d22a5;
$custom-light: #a769c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22a5",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 281.679,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4608,
    "c": 0.19929,
    "h": 312.7
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#7D22A5
secondary
#7EC45F
accent
#E93F73
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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