#7C2FA4#7C2FA4

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

Color values

HEX#7C2FA4
RGBrgb(124, 47, 164)
HSLhsl(279, 55%, 41%)
HSVhsv(279, 71%, 64%)
CMYKcmyk(24.4%, 71.3%, 0%, 35.7%)
CIE-LABlab(35.98, 52.18, -48.68)
CIE-LCHlch(35.98, 71.36, 316.99°)
OKLaboklab(47.12% 0.1216 -0.1376)
OKLCHoklch(47.12% 0.184 311.5)
XYZxyz(16.0283, 8.9989, 36.0074)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA4 #57A42F
analogous
#422FA4 #7C2FA4 #A42F92
triadic
#7C2FA4 #A47C2F #2FA47C
tetradic
#7C2FA4 #A4422F #57A42F #2F92A4
square
#7C2FA4 #A4422F #57A42F #2F92A4
split-complementary
#7C2FA4 #92A42F #2FA442
monochromatic
#341445 #582174 #7C2FA4 #9D46CA #B676D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2FA4#FFFFFF#000000##FFFFFF
##7C2FA41.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)
#0051A7
Deuteranopia (green-blind)
#1F56A1
Tritanopia (blue-blind)
#774866
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2fa4;
/* rgb */ color: rgb(124, 47, 164);
/* oklch */ color: oklch(47.1% 0.184 311.5);
Tailwind
colors: {
  custom: {
    50: '#a66ec0',
    500: '#7c2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa4;
$custom-light: #a66ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa4",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 279.487,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47118,
    "c": 0.18364,
    "h": 311.5
  },
  "luminance": 0.08998
}

Semantic roles & 50–950 ramp

primary
#7C2FA4
secondary
#8BC06F
accent
#DF497C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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