#7C4FEC#7C4FEC

#7C4FEC is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.6% C 0.223 H 290.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7C4FEC
RGBrgb(124, 79, 236)
HSLhsl(257, 81%, 62%)
HSVhsv(257, 67%, 93%)
CMYKcmyk(47.5%, 66.5%, 0%, 7.5%)
CIE-LABlab(46.89, 54.53, -72.82)
CIE-LCHlch(46.89, 90.97, 306.83°)
OKLaboklab(56.58% 0.0787 -0.2087)
OKLCHoklch(56.58% 0.223 290.7)
XYZxyz(26.2442, 15.9322, 81.0330)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4FEC #BFEC4F
analogous
#4F71EC #7C4FEC #CA4FEC
triadic
#7C4FEC #EC7C4F #4FEC7C
tetradic
#7C4FEC #EC4F71 #BFEC4F #4FECCA
square
#7C4FEC #EC4F71 #BFEC4F #4FECCA
split-complementary
#7C4FEC #ECCA4F #71EC4F
monochromatic
#3F13AE #5319E5 #7C4FEC #A586F2 #CEBDF8

Accessibility & contrast

On white

5.02
#7C4FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7C4FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4FEC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4FEC#FFFFFF#000000##FFFFFF
##7C4FEC1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c4fec;
/* rgb */ color: rgb(124, 79, 236);
/* oklch */ color: oklch(56.6% 0.223 290.7);
Tailwind
colors: {
  custom: {
    50: '#ab83f3',
    500: '#7c4fec',
    950: '#000000',
  },
}
SCSS
$custom: #7c4fec;
$custom-light: #ab83f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4fec",
  "rgb": {
    "r": 124,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 257.197,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56582,
    "c": 0.22302,
    "h": 290.7
  },
  "luminance": 0.15933
}

Semantic roles & 50–950 ramp

primary
#7C4FEC
secondary
#D8E8AE
accent
#DD09A0
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C4FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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