#7D2EA2#7D2EA2

#7D2EA2 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.183 H 312.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7D2EA2
RGBrgb(125, 46, 162)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 72%, 64%)
CMYKcmyk(22.8%, 71.6%, 0%, 36.5%)
CIE-LABlab(35.84, 52.39, -47.71)
CIE-LCHlch(35.84, 70.85, 317.68°)
OKLaboklab(47% 0.1243 -0.1347)
OKLCHoklch(47% 0.183 312.7)
XYZxyz(15.9549, 8.9231, 35.0573)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EA2 #53A22E
analogous
#432EA2 #7D2EA2 #A22E8D
triadic
#7D2EA2 #A27D2E #2EA27D
tetradic
#7D2EA2 #A2432E #53A22E #2E8DA2
square
#7D2EA2 #A2432E #53A22E #2E8DA2
split-complementary
#7D2EA2 #8DA22E #2EA243
monochromatic
#331343 #582072 #7D2EA2 #9F43CA #B773D7

Accessibility & contrast

On white

7.54
#7D2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2EA2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EA2#FFFFFF#000000##FFFFFF
##7D2EA21.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#23569F
Tritanopia (blue-blind)
#794765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2ea2;
/* rgb */ color: rgb(125, 46, 162);
/* oklch */ color: oklch(47.0% 0.183 312.7);
Tailwind
colors: {
  custom: {
    50: '#a66ebe',
    500: '#7d2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ea2;
$custom-light: #a66ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ea2",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 280.862,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47,
    "c": 0.18325,
    "h": 312.7
  },
  "luminance": 0.08923
}

Semantic roles & 50–950 ramp

primary
#7D2EA2
secondary
#87BF6D
accent
#DF4979
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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