#7E5AFE#7E5AFE

#7E5AFE is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.7% C 0.231 H 287.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E5AFE
RGBrgb(126, 90, 254)
HSLhsl(253, 99%, 67%)
HSVhsv(253, 65%, 100%)
CMYKcmyk(50.4%, 64.6%, 0%, 0.4%)
CIE-LABlab(50.57, 54.03, -76.87)
CIE-LCHlch(50.57, 93.96, 305.10°)
OKLaboklab(59.71% 0.0687 -0.2205)
OKLCHoklch(59.71% 0.231 287.3)
XYZxyz(30.1445, 18.9023, 95.8069)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AFE #DAFE5A
analogous
#5A88FE #7E5AFE #D05AFE
triadic
#7E5AFE #FE7E5A #5AFE7E
tetradic
#7E5AFE #FE5A88 #DAFE5A #5AFED0
square
#7E5AFE #FE5A88 #DAFE5A #5AFED0
split-complementary
#7E5AFE #FED05A #88FE5A
monochromatic
#3101DC #4E1DFE #7E5AFE #AE97FE #DDD4FF

Accessibility & contrast

On white

4.39
#7E5AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7E5AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5AFE
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AFE#FFFFFF#000000##000000
##7E5AFE1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0074FB
Tritanopia (blue-blind)
#4E83A4
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5afe;
/* rgb */ color: rgb(126, 90, 254);
/* oklch */ color: oklch(59.7% 0.231 287.3);
Tailwind
colors: {
  custom: {
    50: '#ad8bff',
    500: '#7e5afe',
    950: '#000000',
  },
}
SCSS
$custom: #7e5afe;
$custom-light: #ad8bff;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5afe",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 254
  },
  "hsl": {
    "h": 253.171,
    "s": 98.795,
    "l": 67.451
  },
  "oklch": {
    "l": 0.59708,
    "c": 0.23098,
    "h": 287.3
  },
  "luminance": 0.18904
}

Semantic roles & 50–950 ramp

primary
#7E5AFE
secondary
#E8F4C0
accent
#E600B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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