#7C2EA4#7C2EA4

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

Color values

HEX#7C2EA4
RGBrgb(124, 46, 164)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 72%, 64%)
CMYKcmyk(24.4%, 72%, 0%, 35.7%)
CIE-LABlab(35.83, 52.61, -48.93)
CIE-LCHlch(35.83, 71.85, 317.08°)
OKLaboklab(47.01% 0.1227 -0.1383)
OKLCHoklch(47.01% 0.185 311.6)
XYZxyz(15.9888, 8.9198, 35.9942)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA4 #56A42E
analogous
#412EA4 #7C2EA4 #A42E91
triadic
#7C2EA4 #A47C2E #2EA47C
tetradic
#7C2EA4 #A4412E #56A42E #2E91A4
square
#7C2EA4 #A4412E #56A42E #2E91A4
split-complementary
#7C2EA4 #91A42E #2EA441
monochromatic
#341344 #582174 #7C2EA4 #9D45CB #B674D8

Accessibility & contrast

On white

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

On black

2.78
#7C2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7C2EA4#FFFFFF#000000##FFFFFF
##7C2EA41.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#1E56A1
Tritanopia (blue-blind)
#774866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2ea4;
/* rgb */ color: rgb(124, 46, 164);
/* oklch */ color: oklch(47.0% 0.185 311.6);
Tailwind
colors: {
  custom: {
    50: '#a66ec0',
    500: '#7c2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea4;
$custom-light: #a66ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea4",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 279.661,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47009,
    "c": 0.18487,
    "h": 311.6
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#7C2EA4
secondary
#8AC06E
accent
#DF487C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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