#7D2AA6#7D2AA6

#7D2AA6 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.192 H 311.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7D2AA6
RGBrgb(125, 42, 166)
HSLhsl(280, 60%, 41%)
HSVhsv(280, 75%, 65%)
CMYKcmyk(24.7%, 74.7%, 0%, 34.9%)
CIE-LABlab(35.54, 54.89, -50.60)
CIE-LCHlch(35.54, 74.65, 317.33°)
OKLaboklab(46.88% 0.1277 -0.1431)
OKLCHoklch(46.88% 0.192 311.7)
XYZxyz(16.1671, 8.7695, 36.9100)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2AA6 #53A62A
analogous
#3F2AA6 #7D2AA6 #A62A91
triadic
#7D2AA6 #A67D2A #2AA67D
tetradic
#7D2AA6 #A63F2A #53A62A #2A91A6
square
#7D2AA6 #A63F2A #53A62A #2A91A6
split-complementary
#7D2AA6 #91A62A #2AA63F
monochromatic
#331144 #581E75 #7D2AA6 #9F3FCE #B770DB

Accessibility & contrast

On white

7.63
#7D2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7D2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2AA6
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2AA6#FFFFFF#000000##FFFFFF
##7D2AA61.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1755A3
Tritanopia (blue-blind)
#784666
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2aa6;
/* rgb */ color: rgb(125, 42, 166);
/* oklch */ color: oklch(46.9% 0.192 311.7);
Tailwind
colors: {
  custom: {
    50: '#a76cc1',
    500: '#7d2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #7d2aa6;
$custom-light: #a76cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2aa6",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 280.161,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46877,
    "c": 0.19185,
    "h": 311.7
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

primary
#7D2AA6
secondary
#87C26A
accent
#E34579
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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