#7C4FEB#7C4FEB

#7C4FEB is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.222 H 290.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7C4FEB
RGBrgb(124, 79, 235)
HSLhsl(257, 80%, 62%)
HSVhsv(257, 66%, 92%)
CMYKcmyk(47.2%, 66.4%, 0%, 7.8%)
CIE-LABlab(46.81, 54.26, -72.38)
CIE-LCHlch(46.81, 90.46, 306.86°)
OKLaboklab(56.5% 0.0788 -0.2074)
OKLCHoklch(56.5% 0.222 290.8)
XYZxyz(26.0993, 15.8742, 80.2700)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4FEB #BEEB4F
analogous
#4F70EB #7C4FEB #CA4FEB
triadic
#7C4FEB #EB7C4F #4FEB7C
tetradic
#7C4FEB #EB4F70 #BEEB4F #4FEBCA
square
#7C4FEB #EB4F70 #BEEB4F #4FEBCA
split-complementary
#7C4FEB #EBCA4F #70EB4F
monochromatic
#4014AC #541AE3 #7C4FEB #A586F1 #CEBDF7

Accessibility & contrast

On white

5.03
#7C4FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7C4FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4FEB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4FEB#FFFFFF#000000##FFFFFF
##7C4FEB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#006BE8
Tritanopia (blue-blind)
#587697
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7c4feb;
/* rgb */ color: rgb(124, 79, 235);
/* oklch */ color: oklch(56.5% 0.222 290.8);
Tailwind
colors: {
  custom: {
    50: '#aa83f2',
    500: '#7c4feb',
    950: '#000000',
  },
}
SCSS
$custom: #7c4feb;
$custom-light: #aa83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4feb",
  "rgb": {
    "r": 124,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 257.308,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56504,
    "c": 0.22185,
    "h": 290.8
  },
  "luminance": 0.15875
}

Semantic roles & 50–950 ramp

primary
#7C4FEB
secondary
#D7E8AE
accent
#DC0A9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C4FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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