#7C5EF4#7C5EF4

#7C5EF4 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.4% C 0.214 H 287.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7C5EF4
RGBrgb(124, 94, 244)
HSLhsl(252, 87%, 66%)
HSVhsv(252, 61%, 96%)
CMYKcmyk(49.2%, 61.5%, 0%, 4.3%)
CIE-LABlab(50.48, 48.67, -71.46)
CIE-LCHlch(50.48, 86.46, 304.25°)
OKLaboklab(59.37% 0.0632 -0.2047)
OKLCHoklch(59.37% 0.214 287.2)
XYZxyz(28.6392, 18.8208, 87.6942)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5EF4 #D6F45E
analogous
#5E8BF4 #7C5EF4 #C75EF4
triadic
#7C5EF4 #F47C5E #5EF47C
tetradic
#7C5EF4 #F45E8B #D6F45E #5EF4C7
square
#7C5EF4 #F45E8B #D6F45E #5EF4C7
split-complementary
#7C5EF4 #F4C75E #8BF45E
monochromatic
#330ECA #4D25F0 #7C5EF4 #AB97F8 #D9D1FC

Accessibility & contrast

On white

4.41
#7C5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7C5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5EF4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5EF4#FFFFFF#000000##000000
##7C5EF41.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF9
Deuteranopia (green-blind)
#0074F1
Tritanopia (blue-blind)
#5182A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7c5ef4;
/* rgb */ color: rgb(124, 94, 244);
/* oklch */ color: oklch(59.4% 0.214 287.2);
Tailwind
colors: {
  custom: {
    50: '#ab8df9',
    500: '#7c5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ef4;
$custom-light: #ab8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ef4",
  "rgb": {
    "r": 124,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 252,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.59366,
    "c": 0.21423,
    "h": 287.2
  },
  "luminance": 0.18822
}

Semantic roles & 50–950 ramp

primary
#7C5EF4
secondary
#E6EFBE
accent
#E402B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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