#7C2FA0#7C2FA0

#7C2FA0 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.180 H 312.8°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7C2FA0
RGBrgb(124, 47, 160)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 63%)
CMYKcmyk(22.5%, 70.6%, 0%, 37.3%)
CIE-LABlab(35.71, 51.31, -46.72)
CIE-LCHlch(35.71, 69.39, 317.68°)
OKLaboklab(46.83% 0.1221 -0.1318)
OKLCHoklch(46.83% 0.18 312.8)
XYZxyz(15.6727, 8.8566, 34.1348)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA0 #53A02F
analogous
#432FA0 #7C2FA0 #A02F8B
triadic
#7C2FA0 #A07C2F #2FA07C
tetradic
#7C2FA0 #A0432F #53A02F #2F8BA0
square
#7C2FA0 #A0432F #53A02F #2F8BA0
split-complementary
#7C2FA0 #8BA02F #2FA043
monochromatic
#331341 #572171 #7C2FA0 #9E44C8 #B773D6

Accessibility & contrast

On white

7.58
#7C2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7C2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FA0
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FA0#FFFFFF#000000##FFFFFF
##7C2FA01.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#25569D
Tritanopia (blue-blind)
#784764
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2fa0;
/* rgb */ color: rgb(124, 47, 160);
/* oklch */ color: oklch(46.8% 0.180 312.8);
Tailwind
colors: {
  custom: {
    50: '#a66ebd',
    500: '#7c2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa0;
$custom-light: #a66ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa0",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 280.885,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46834,
    "c": 0.17967,
    "h": 312.8
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#7C2FA0
secondary
#87BE6D
accent
#DE4A79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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