#7C2FA1#7C2FA1

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

Color values

HEX#7C2FA1
RGBrgb(124, 47, 161)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 63%)
CMYKcmyk(23%, 70.8%, 0%, 36.9%)
CIE-LABlab(35.78, 51.52, -47.21)
CIE-LCHlch(35.78, 69.88, 317.50°)
OKLaboklab(46.91% 0.122 -0.1333)
OKLCHoklch(46.91% 0.181 312.5)
XYZxyz(15.7606, 8.8918, 34.5974)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA1 #54A12F
analogous
#432FA1 #7C2FA1 #A12F8D
triadic
#7C2FA1 #A17C2F #2FA17C
tetradic
#7C2FA1 #A1432F #54A12F #2F8DA1
square
#7C2FA1 #A1432F #54A12F #2F8DA1
split-complementary
#7C2FA1 #8DA12F #2FA143
monochromatic
#331342 #582172 #7C2FA1 #9E45C9 #B674D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2FA1#FFFFFF#000000##FFFFFF
##7C2FA11.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)
#784765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2fa1;
/* rgb */ color: rgb(124, 47, 161);
/* oklch */ color: oklch(46.9% 0.181 312.5);
Tailwind
colors: {
  custom: {
    50: '#a66ebd',
    500: '#7c2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa1;
$custom-light: #a66ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa1",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 280.526,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46905,
    "c": 0.18066,
    "h": 312.5
  },
  "luminance": 0.08891
}

Semantic roles & 50–950 ramp

primary
#7C2FA1
secondary
#88BE6E
accent
#DE4A7A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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