#7E5AEE#7E5AEE

#7E5AEE is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.5% C 0.212 H 289.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7E5AEE
RGBrgb(126, 90, 238)
HSLhsl(255, 81%, 64%)
HSVhsv(255, 62%, 93%)
CMYKcmyk(47.1%, 62.2%, 0%, 6.7%)
CIE-LABlab(49.40, 49.56, -69.85)
CIE-LCHlch(49.40, 85.65, 305.36°)
OKLaboklab(58.49% 0.0703 -0.1999)
OKLCHoklch(58.49% 0.212 289.4)
XYZxyz(27.6886, 17.9199, 82.8723)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AEE #CAEE5A
analogous
#5A80EE #7E5AEE #C85AEE
triadic
#7E5AEE #EE7E5A #5AEE7E
tetradic
#7E5AEE #EE5A80 #CAEE5A #5AEEC8
square
#7E5AEE #EE5A80 #CAEE5A #5AEEC8
split-complementary
#7E5AEE #EEC85A #80EE5A
monochromatic
#3C13BA #5323E8 #7E5AEE #A991F4 #D5C9F9

Accessibility & contrast

On white

4.58
#7E5AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7E5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5AEE
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AEE#FFFFFF#000000##000000
##7E5AEE1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#0072EB
Tritanopia (blue-blind)
#5A7D9C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5aee;
/* rgb */ color: rgb(126, 90, 238);
/* oklch */ color: oklch(58.5% 0.212 289.4);
Tailwind
colors: {
  custom: {
    50: '#ab8af4',
    500: '#7e5aee',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aee;
$custom-light: #ab8af4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aee",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 254.595,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.5849,
    "c": 0.21188,
    "h": 289.4
  },
  "luminance": 0.17921
}

Semantic roles & 50–950 ramp

primary
#7E5AEE
secondary
#DFECB8
accent
#DE08AA
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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