#7E5AEF#7E5AEF

#7E5AEF is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.6% C 0.213 H 289.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7E5AEF
RGBrgb(126, 90, 239)
HSLhsl(254, 82%, 65%)
HSVhsv(254, 62%, 94%)
CMYKcmyk(47.3%, 62.3%, 0%, 6.3%)
CIE-LABlab(49.47, 49.84, -70.29)
CIE-LCHlch(49.47, 86.17, 305.34°)
OKLaboklab(58.56% 0.0702 -0.2012)
OKLCHoklch(58.56% 0.213 289.2)
XYZxyz(27.8359, 17.9788, 83.6482)
Luminance0.1798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AEF #CBEF5A
analogous
#5A81EF #7E5AEF #C95AEF
triadic
#7E5AEF #EF7E5A #5AEF7E
tetradic
#7E5AEF #EF5A81 #CBEF5A #5AEFC9
square
#7E5AEF #EF5A81 #CBEF5A #5AEFC9
split-complementary
#7E5AEF #EFC95A #81EF5A
monochromatic
#3B12BC #5222EA #7E5AEF #AA92F4 #D5CAFA

Accessibility & contrast

On white

4.57
#7E5AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7E5AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5AEF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AEF#FFFFFF#000000##000000
##7E5AEF1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#0072EC
Tritanopia (blue-blind)
#597D9C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5aef;
/* rgb */ color: rgb(126, 90, 239);
/* oklch */ color: oklch(58.6% 0.213 289.2);
Tailwind
colors: {
  custom: {
    50: '#ab8af5',
    500: '#7e5aef',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aef;
$custom-light: #ab8af5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aef",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 254.497,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58564,
    "c": 0.21309,
    "h": 289.2
  },
  "luminance": 0.1798
}

Semantic roles & 50–950 ramp

primary
#7E5AEF
secondary
#E0ECB9
accent
#DF07AB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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