#7E5EFC#7E5EFC

#7E5EFC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.1% C 0.224 H 286.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7E5EFC
RGBrgb(126, 94, 252)
HSLhsl(252, 96%, 68%)
HSVhsv(252, 63%, 99%)
CMYKcmyk(50%, 62.7%, 0%, 1.2%)
CIE-LABlab(51.23, 51.30, -74.69)
CIE-LCHlch(51.23, 90.61, 304.48°)
OKLaboklab(60.14% 0.0652 -0.2141)
OKLCHoklch(60.14% 0.224 286.9)
XYZxyz(30.1724, 19.4679, 94.2444)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EFC #DCFC5E
analogous
#5E8DFC #7E5EFC #CD5EFC
triadic
#7E5EFC #FC7E5E #5EFC7E
tetradic
#7E5EFC #FC5E8D #DCFC5E #5EFCCD
square
#7E5EFC #FC5E8D #DCFC5E #5EFCCD
split-complementary
#7E5EFC #FCCD5E #8DFC5E
monochromatic
#3004DC #4E22FB #7E5EFC #AE9AFD #DED6FE

Accessibility & contrast

On white

4.29
#7E5EFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#7E5EFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5EFC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EFC#FFFFFF#000000##000000
##7E5EFC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0076F9
Tritanopia (blue-blind)
#5084A5
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e5efc;
/* rgb */ color: rgb(126, 94, 252);
/* oklch */ color: oklch(60.1% 0.224 286.9);
Tailwind
colors: {
  custom: {
    50: '#ad8dfe',
    500: '#7e5efc',
    950: '#000000',
  },
}
SCSS
$custom: #7e5efc;
$custom-light: #ad8dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5efc",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 252
  },
  "hsl": {
    "h": 252.152,
    "s": 96.341,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60138,
    "c": 0.2238,
    "h": 286.9
  },
  "luminance": 0.19469
}

Semantic roles & 50–950 ramp

primary
#7E5EFC
secondary
#E9F3C3
accent
#E600B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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