#7C4EEA#7C4EEA

#7C4EEA is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.222 H 291.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7C4EEA
RGBrgb(124, 78, 234)
HSLhsl(258, 79%, 61%)
HSVhsv(258, 67%, 92%)
CMYKcmyk(47%, 66.7%, 0%, 8.2%)
CIE-LABlab(46.54, 54.51, -72.25)
CIE-LCHlch(46.54, 90.51, 307.03°)
OKLaboklab(56.29% 0.0799 -0.207)
OKLCHoklch(56.29% 0.222 291.1)
XYZxyz(25.8837, 15.6734, 79.4874)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4EEA #BCEA4E
analogous
#4E6EEA #7C4EEA #CA4EEA
triadic
#7C4EEA #EA7C4E #4EEA7C
tetradic
#7C4EEA #EA4E6E #BCEA4E #4EEACA
square
#7C4EEA #EA4E6E #BCEA4E #4EEACA
split-complementary
#7C4EEA #EACA4E #6EEA4E
monochromatic
#4014A9 #551BE0 #7C4EEA #A485F0 #CDBBF7

Accessibility & contrast

On white

5.08
#7C4EEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7C4EEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4EEA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4EEA#FFFFFF#000000##FFFFFF
##7C4EEA1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#006BE7
Tritanopia (blue-blind)
#597596
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7c4eea;
/* rgb */ color: rgb(124, 78, 234);
/* oklch */ color: oklch(56.3% 0.222 291.1);
Tailwind
colors: {
  custom: {
    50: '#aa83f2',
    500: '#7c4eea',
    950: '#000000',
  },
}
SCSS
$custom: #7c4eea;
$custom-light: #aa83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4eea",
  "rgb": {
    "r": 124,
    "g": 78,
    "b": 234
  },
  "hsl": {
    "h": 257.692,
    "s": 78.788,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56289,
    "c": 0.22189,
    "h": 291.1
  },
  "luminance": 0.15674
}

Semantic roles & 50–950 ramp

primary
#7C4EEA
secondary
#D6E7AD
accent
#DB0A9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C4EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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