#7D2EA1#7D2EA1

#7D2EA1 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.182 H 313.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7D2EA1
RGBrgb(125, 46, 161)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 71%, 63%)
CMYKcmyk(22.4%, 71.4%, 0%, 36.9%)
CIE-LABlab(35.77, 52.17, -47.21)
CIE-LCHlch(35.77, 70.36, 317.86°)
OKLaboklab(46.93% 0.1244 -0.1332)
OKLCHoklch(46.93% 0.182 313)
XYZxyz(15.8663, 8.8876, 34.5910)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EA1 #52A12E
analogous
#432EA1 #7D2EA1 #A12E8C
triadic
#7D2EA1 #A17D2E #2EA17D
tetradic
#7D2EA1 #A1432E #52A12E #2E8CA1
square
#7D2EA1 #A1432E #52A12E #2E8CA1
split-complementary
#7D2EA1 #8CA12E #2EA143
monochromatic
#331342 #582071 #7D2EA1 #9F43C9 #B773D7

Accessibility & contrast

On white

7.56
#7D2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7D2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EA1
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EA1#FFFFFF#000000##FFFFFF
##7D2EA11.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2ea1;
/* rgb */ color: rgb(125, 46, 161);
/* oklch */ color: oklch(46.9% 0.182 313.0);
Tailwind
colors: {
  custom: {
    50: '#a66ebd',
    500: '#7d2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ea1;
$custom-light: #a66ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ea1",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 281.217,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46929,
    "c": 0.18227,
    "h": 313
  },
  "luminance": 0.08887
}

Semantic roles & 50–950 ramp

primary
#7D2EA1
secondary
#86BE6C
accent
#DF4978
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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