#7D22A3#7D22A3

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

Color values

HEX#7D22A3
RGBrgb(125, 34, 163)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 64%)
CMYKcmyk(23.3%, 79.1%, 0%, 36.1%)
CIE-LABlab(34.29, 57.21, -50.80)
CIE-LCHlch(34.29, 76.52, 318.40°)
OKLaboklab(45.93% 0.1355 -0.1437)
OKLCHoklch(45.93% 0.197 313.3)
XYZxyz(15.6392, 8.1489, 35.3923)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22A3 #48A322
analogous
#3D22A3 #7D22A3 #A32288
triadic
#7D22A3 #A37D22 #22A37D
tetradic
#7D22A3 #A33D22 #48A322 #2288A3
square
#7D22A3 #A33D22 #48A322 #2288A3
split-complementary
#7D22A3 #88A322 #22A33D
monochromatic
#2F0D3E #561770 #7D22A3 #A32FD4 #B961DE

Accessibility & contrast

On white

7.99
#7D22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D22A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D22A3
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22A3#FFFFFF#000000##FFFFFF
##7D22A31.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#1153A0
Tritanopia (blue-blind)
#794162
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d22a3;
/* rgb */ color: rgb(125, 34, 163);
/* oklch */ color: oklch(45.9% 0.197 313.3);
Tailwind
colors: {
  custom: {
    50: '#a768bf',
    500: '#7d22a3',
    950: '#000000',
  },
}
SCSS
$custom: #7d22a3;
$custom-light: #a768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22a3",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 282.326,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45929,
    "c": 0.19749,
    "h": 313.3
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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