#7C4FA6#7C4FA6

#7C4FA6 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.139 H 306.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7C4FA6
RGBrgb(124, 79, 166)
HSLhsl(271, 36%, 48%)
HSVhsv(271, 52%, 65%)
CMYKcmyk(25.3%, 52.4%, 0%, 34.9%)
CIE-LABlab(42.20, 36.21, -39.92)
CIE-LCHlch(42.20, 53.90, 312.21°)
OKLaboklab(51.68% 0.0815 -0.1121)
OKLCHoklch(51.68% 0.139 306)
XYZxyz(17.9897, 12.6304, 37.5592)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4FA6 #79A64F
analogous
#504FA6 #7C4FA6 #A64FA4
triadic
#7C4FA6 #A67C4F #4FA67C
tetradic
#7C4FA6 #A6504F #79A64F #4FA4A6
square
#7C4FA6 #A6504F #79A64F #4FA4A6
split-complementary
#7C4FA6 #A4A64F #4FA650
monochromatic
#3E2853 #5D3B7D #7C4FA6 #9A75BD #B99ED1

Accessibility & contrast

On white

5.96
#7C4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7C4FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4FA6
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4FA6#FFFFFF#000000##FFFFFF
##7C4FA61.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#4264A4
Tritanopia (blue-blind)
#755F73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c4fa6;
/* rgb */ color: rgb(124, 79, 166);
/* oklch */ color: oklch(51.7% 0.139 306.0);
Tailwind
colors: {
  custom: {
    50: '#a482c1',
    500: '#7c4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7c4fa6;
$custom-light: #a482c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4fa6",
  "rgb": {
    "r": 124,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 271.034,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51681,
    "c": 0.13855,
    "h": 306
  },
  "luminance": 0.1263
}

Semantic roles & 50–950 ramp

primary
#7C4FA6
secondary
#A8BE93
accent
#CC5C92
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7C4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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