#7D2FA1#7D2FA1

#7D2FA1 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.181 H 312.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7D2FA1
RGBrgb(125, 47, 161)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 63%)
CMYKcmyk(22.4%, 70.8%, 0%, 36.9%)
CIE-LABlab(35.92, 51.74, -46.97)
CIE-LCHlch(35.92, 69.88, 317.77°)
OKLaboklab(47.04% 0.1233 -0.1325)
OKLCHoklch(47.04% 0.181 312.9)
XYZxyz(15.9058, 8.9667, 34.6042)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2FA1 #53A12F
analogous
#442FA1 #7D2FA1 #A12F8C
triadic
#7D2FA1 #A17D2F #2FA17D
tetradic
#7D2FA1 #A1442F #53A12F #2F8CA1
square
#7D2FA1 #A1442F #53A12F #2F8CA1
split-complementary
#7D2FA1 #8CA12F #2FA144
monochromatic
#331342 #582172 #7D2FA1 #9F45C9 #B774D6

Accessibility & contrast

On white

7.52
#7D2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7D2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2FA1
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2FA1#FFFFFF#000000##FFFFFF
##7D2FA11.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#25569E
Tritanopia (blue-blind)
#794765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2fa1;
/* rgb */ color: rgb(125, 47, 161);
/* oklch */ color: oklch(47.0% 0.181 312.9);
Tailwind
colors: {
  custom: {
    50: '#a66ebd',
    500: '#7d2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7d2fa1;
$custom-light: #a66ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2fa1",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 281.053,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47038,
    "c": 0.18101,
    "h": 312.9
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#7D2FA1
secondary
#87BE6E
accent
#DE4A79
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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