#7E5CF4#7E5CF4

#7E5CF4 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.2% C 0.217 H 288.2°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7E5CF4
RGBrgb(126, 92, 244)
HSLhsl(253, 87%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(48.4%, 62.3%, 0%, 4.3%)
CIE-LABlab(50.24, 50.14, -71.84)
CIE-LCHlch(50.24, 87.61, 304.91°)
OKLaboklab(59.24% 0.0678 -0.2057)
OKLCHoklch(59.24% 0.217 288.2)
XYZxyz(28.7557, 18.6203, 87.6493)
Luminance0.1862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CF4 #D2F45C
analogous
#5C86F4 #7E5CF4 #CA5CF4
triadic
#7E5CF4 #F47E5C #5CF47E
tetradic
#7E5CF4 #F45C86 #D2F45C #5CF4CA
square
#7E5CF4 #F45C86 #D2F45C #5CF4CA
split-complementary
#7E5CF4 #F4CA5C #86F45C
monochromatic
#370EC8 #5123F0 #7E5CF4 #AB95F8 #D9CFFC

Accessibility & contrast

On white

4.45
#7E5CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7E5CF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CF4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CF4#FFFFFF#000000##000000
##7E5CF41.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e5cf4;
/* rgb */ color: rgb(126, 92, 244);
/* oklch */ color: oklch(59.2% 0.217 288.2);
Tailwind
colors: {
  custom: {
    50: '#ac8cf9',
    500: '#7e5cf4',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cf4;
$custom-light: #ac8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cf4",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 244
  },
  "hsl": {
    "h": 253.421,
    "s": 87.356,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59237,
    "c": 0.21662,
    "h": 288.2
  },
  "luminance": 0.18622
}

Semantic roles & 50–950 ramp

primary
#7E5CF4
secondary
#E4EFBD
accent
#E402B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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