#7E5AE1#7E5AE1

#7E5AE1 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.5% C 0.196 H 291.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E5AE1
RGBrgb(126, 90, 225)
HSLhsl(256, 69%, 62%)
HSVhsv(256, 60%, 88%)
CMYKcmyk(44%, 60%, 0%, 11.8%)
CIE-LABlab(48.49, 45.96, -63.99)
CIE-LCHlch(48.49, 78.79, 305.69°)
OKLaboklab(57.54% 0.0711 -0.1827)
OKLCHoklch(57.54% 0.196 291.3)
XYZxyz(25.8472, 17.1833, 73.1744)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AE1 #BDE15A
analogous
#5A7AE1 #7E5AE1 #C25AE1
triadic
#7E5AE1 #E17E5A #5AE17E
tetradic
#7E5AE1 #E15A7A #BDE15A #5AE1C2
square
#7E5AE1 #E15A7A #BDE15A #5AE1C2
split-complementary
#7E5AE1 #E1C25A #7AE15A
monochromatic
#411EA3 #5627D7 #7E5AE1 #A68EEA #CFC2F4

Accessibility & contrast

On white

4.73
#7E5AE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7E5AE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5AE1
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AE1#FFFFFF#000000##FFFFFF
##7E5AE11.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E5
Deuteranopia (green-blind)
#0070DE
Tritanopia (blue-blind)
#617995
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e5ae1;
/* rgb */ color: rgb(126, 90, 225);
/* oklch */ color: oklch(57.5% 0.196 291.3);
Tailwind
colors: {
  custom: {
    50: '#aa8aeb',
    500: '#7e5ae1',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ae1;
$custom-light: #aa8aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ae1",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 225
  },
  "hsl": {
    "h": 256,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57541,
    "c": 0.19602,
    "h": 291.3
  },
  "luminance": 0.17184
}

Semantic roles & 50–950 ramp

primary
#7E5AE1
secondary
#D7E4B2
accent
#D1149F
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7E5AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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