#7C2FA2#7C2FA2

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

Color values

HEX#7C2FA2
RGBrgb(124, 47, 162)
HSLhsl(280, 55%, 41%)
HSVhsv(280, 71%, 64%)
CMYKcmyk(23.5%, 71%, 0%, 36.5%)
CIE-LABlab(35.84, 51.74, -47.70)
CIE-LCHlch(35.84, 70.37, 317.33°)
OKLaboklab(46.98% 0.1219 -0.1347)
OKLCHoklch(46.98% 0.182 312.1)
XYZxyz(15.8491, 8.9272, 35.0636)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA2 #55A22F
analogous
#422FA2 #7C2FA2 #A22F8E
triadic
#7C2FA2 #A27C2F #2FA27C
tetradic
#7C2FA2 #A2422F #55A22F #2F8EA2
square
#7C2FA2 #A2422F #55A22F #2F8EA2
split-complementary
#7C2FA2 #8EA22F #2FA242
monochromatic
#331343 #582173 #7C2FA2 #9D45C9 #B675D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2FA2#FFFFFF#000000##FFFFFF
##7C2FA21.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#22569F
Tritanopia (blue-blind)
#784865
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2fa2;
/* rgb */ color: rgb(124, 47, 162);
/* oklch */ color: oklch(47.0% 0.182 312.1);
Tailwind
colors: {
  custom: {
    50: '#a66ebe',
    500: '#7c2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa2;
$custom-light: #a66ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa2",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 280.174,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46975,
    "c": 0.18166,
    "h": 312.1
  },
  "luminance": 0.08927
}

Semantic roles & 50–950 ramp

primary
#7C2FA2
secondary
#89BF6E
accent
#DE497B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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