#7C4FF2#7C4FF2

#7C4FF2 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.1% C 0.230 H 289.8°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7C4FF2
RGBrgb(124, 79, 242)
HSLhsl(257, 86%, 63%)
HSVhsv(257, 67%, 95%)
CMYKcmyk(48.8%, 67.4%, 0%, 5.1%)
CIE-LABlab(47.35, 56.16, -75.44)
CIE-LCHlch(47.35, 94.05, 306.67°)
OKLaboklab(57.06% 0.0778 -0.2164)
OKLCHoklch(57.06% 0.23 289.8)
XYZxyz(27.1306, 16.2867, 85.7013)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4FF2 #C5F24F
analogous
#4F74F2 #7C4FF2 #CD4FF2
triadic
#7C4FF2 #F27C4F #4FF27C
tetradic
#7C4FF2 #F24F74 #C5F24F #4FF2CD
square
#7C4FF2 #F24F74 #C5F24F #4FF2CD
split-complementary
#7C4FF2 #F2CD4F #74F24F
monochromatic
#3D0EB9 #5216EE #7C4FF2 #A688F6 #D1C1FA

Accessibility & contrast

On white

4.93
#7C4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7C4FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4FF2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4FF2#FFFFFF#000000##FFFFFF
##7C4FF21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#54789A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c4ff2;
/* rgb */ color: rgb(124, 79, 242);
/* oklch */ color: oklch(57.1% 0.230 289.8);
Tailwind
colors: {
  custom: {
    50: '#ab83f7',
    500: '#7c4ff2',
    950: '#000000',
  },
}
SCSS
$custom: #7c4ff2;
$custom-light: #ab83f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4ff2",
  "rgb": {
    "r": 124,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 256.564,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57059,
    "c": 0.22992,
    "h": 289.8
  },
  "luminance": 0.16288
}

Semantic roles & 50–950 ramp

primary
#7C4FF2
secondary
#DCECB1
accent
#E303A5
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C4FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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