#7E4FEC#7E4FEC

#7E4FEC is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.8% C 0.223 H 291.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E4FEC
RGBrgb(126, 79, 236)
HSLhsl(258, 81%, 62%)
HSVhsv(258, 67%, 93%)
CMYKcmyk(46.6%, 66.5%, 0%, 7.5%)
CIE-LABlab(47.08, 54.88, -72.49)
CIE-LCHlch(47.08, 90.92, 307.13°)
OKLaboklab(56.77% 0.0814 -0.2076)
OKLCHoklch(56.77% 0.223 291.4)
XYZxyz(26.5362, 16.0828, 81.0467)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FEC #BDEC4F
analogous
#4F6FEC #7E4FEC #CD4FEC
triadic
#7E4FEC #EC7E4F #4FEC7E
tetradic
#7E4FEC #EC4F6F #BDEC4F #4FECCD
square
#7E4FEC #EC4F6F #BDEC4F #4FECCD
split-complementary
#7E4FEC #ECCD4F #6FEC4F
monochromatic
#4113AE #5619E5 #7E4FEC #A686F2 #CFBDF8

Accessibility & contrast

On white

4.98
#7E4FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E4FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FEC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FEC#FFFFFF#000000##FFFFFF
##7E4FEC1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#5C7697
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e4fec;
/* rgb */ color: rgb(126, 79, 236);
/* oklch */ color: oklch(56.8% 0.223 291.4);
Tailwind
colors: {
  custom: {
    50: '#ac83f3',
    500: '#7e4fec',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fec;
$custom-light: #ac83f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fec",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 257.962,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56771,
    "c": 0.22302,
    "h": 291.4
  },
  "luminance": 0.16084
}

Semantic roles & 50–950 ramp

primary
#7E4FEC
secondary
#D7E8AE
accent
#DD099D
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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