#7C4FA2#7C4FA2

#7C4FA2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.4% C 0.134 H 307.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7C4FA2
RGBrgb(124, 79, 162)
HSLhsl(273, 34%, 47%)
HSVhsv(273, 51%, 64%)
CMYKcmyk(23.5%, 51.2%, 0%, 36.5%)
CIE-LABlab(41.98, 35.24, -37.89)
CIE-LCHlch(41.98, 51.74, 312.92°)
OKLaboklab(51.44% 0.0811 -0.1062)
OKLCHoklch(51.44% 0.134 307.4)
XYZxyz(17.6284, 12.4859, 35.6567)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4FA2 #75A24F
analogous
#524FA2 #7C4FA2 #A24F9F
triadic
#7C4FA2 #A27C4F #4FA27C
tetradic
#7C4FA2 #A2524F #75A24F #4F9FA2
square
#7C4FA2 #A2524F #75A24F #4F9FA2
split-complementary
#7C4FA2 #9FA24F #4FA252
monochromatic
#3D2750 #5D3B79 #7C4FA2 #9A73BB #B89CCF

Accessibility & contrast

On white

6.00
#7C4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7C4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4FA2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4FA2#FFFFFF#000000##FFFFFF
##7C4FA21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A5
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#765D71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c4fa2;
/* rgb */ color: rgb(124, 79, 162);
/* oklch */ color: oklch(51.4% 0.134 307.4);
Tailwind
colors: {
  custom: {
    50: '#a482be',
    500: '#7c4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7c4fa2;
$custom-light: #a482be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4fa2",
  "rgb": {
    "r": 124,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 272.53,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51444,
    "c": 0.13359,
    "h": 307.4
  },
  "luminance": 0.12486
}

Semantic roles & 50–950 ramp

primary
#7C4FA2
secondary
#A5BC91
accent
#CB5D8F
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7C4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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