#7D2FA2#7D2FA2

#7D2FA2 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.182 H 312.6°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7D2FA2
RGBrgb(125, 47, 162)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 64%)
CMYKcmyk(22.8%, 71%, 0%, 36.5%)
CIE-LABlab(35.99, 51.96, -47.46)
CIE-LCHlch(35.99, 70.37, 317.59°)
OKLaboklab(47.11% 0.1232 -0.134)
OKLCHoklch(47.11% 0.182 312.6)
XYZxyz(15.9944, 9.0021, 35.0704)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2FA2 #54A22F
analogous
#432FA2 #7D2FA2 #A22F8D
triadic
#7D2FA2 #A27D2F #2FA27D
tetradic
#7D2FA2 #A2432F #54A22F #2F8DA2
square
#7D2FA2 #A2432F #54A22F #2F8DA2
split-complementary
#7D2FA2 #8DA22F #2FA243
monochromatic
#341343 #582173 #7D2FA2 #9F45C9 #B775D7

Accessibility & contrast

On white

7.50
#7D2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7D2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2FA2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2FA2#FFFFFF#000000##FFFFFF
##7D2FA21.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#24569F
Tritanopia (blue-blind)
#794765
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2fa2;
/* rgb */ color: rgb(125, 47, 162);
/* oklch */ color: oklch(47.1% 0.182 312.6);
Tailwind
colors: {
  custom: {
    50: '#a66ebe',
    500: '#7d2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7d2fa2;
$custom-light: #a66ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2fa2",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 280.696,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47109,
    "c": 0.182,
    "h": 312.6
  },
  "luminance": 0.09002
}

Semantic roles & 50–950 ramp

primary
#7D2FA2
secondary
#88BF6E
accent
#DE4979
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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