#7D20A6#7D20A6

#7D20A6 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.202 H 312.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7D20A6
RGBrgb(125, 32, 166)
HSLhsl(282, 68%, 39%)
HSVhsv(282, 81%, 65%)
CMYKcmyk(24.7%, 80.7%, 0%, 34.9%)
CIE-LABlab(34.29, 58.49, -52.62)
CIE-LCHlch(34.29, 78.68, 318.03°)
OKLaboklab(46% 0.1365 -0.149)
OKLCHoklch(46% 0.202 312.5)
XYZxyz(15.8556, 8.1466, 36.8062)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D20A6 #49A620
analogous
#3A20A6 #7D20A6 #A6208C
triadic
#7D20A6 #A67D20 #20A67D
tetradic
#7D20A6 #A63A20 #49A620 #208CA6
square
#7D20A6 #A63A20 #49A620 #208CA6
split-complementary
#7D20A6 #8CA620 #20A63A
monochromatic
#300C3F #561673 #7D20A6 #A32DD6 #B960E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D20A6#FFFFFF#000000##FFFFFF
##7D20A61.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)
#004CAA
Deuteranopia (green-blind)
#0352A3
Tritanopia (blue-blind)
#784164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d20a6;
/* rgb */ color: rgb(125, 32, 166);
/* oklch */ color: oklch(46.0% 0.202 312.5);
Tailwind
colors: {
  custom: {
    50: '#a768c1',
    500: '#7d20a6',
    950: '#000000',
  },
}
SCSS
$custom: #7d20a6;
$custom-light: #a768c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d20a6",
  "rgb": {
    "r": 125,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 281.642,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.20206,
    "h": 312.5
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#7D20A6
secondary
#7DC55D
accent
#EB3D72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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