#7E5AE3#7E5AE3

#7E5AE3 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.7% C 0.198 H 291.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7E5AE3
RGBrgb(126, 90, 227)
HSLhsl(256, 71%, 62%)
HSVhsv(256, 60%, 89%)
CMYKcmyk(44.5%, 60.4%, 0%, 11%)
CIE-LABlab(48.63, 46.51, -64.90)
CIE-LCHlch(48.63, 79.85, 305.63°)
OKLaboklab(57.68% 0.071 -0.1853)
OKLCHoklch(57.68% 0.198 291)
XYZxyz(26.1216, 17.2931, 74.6197)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AE3 #BFE35A
analogous
#5A7BE3 #7E5AE3 #C25AE3
triadic
#7E5AE3 #E37E5A #5AE37E
tetradic
#7E5AE3 #E35A7B #BFE35A #5AE3C2
square
#7E5AE3 #E35A7B #BFE35A #5AE3C2
split-complementary
#7E5AE3 #E3C25A #7BE35A
monochromatic
#411CA6 #5526DA #7E5AE3 #A78EEC #D0C3F5

Accessibility & contrast

On white

4.71
#7E5AE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7E5AE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5AE3
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AE3#FFFFFF#000000##FFFFFF
##7E5AE31.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#607996
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e5ae3;
/* rgb */ color: rgb(126, 90, 227);
/* oklch */ color: oklch(57.7% 0.198 291.0);
Tailwind
colors: {
  custom: {
    50: '#aa8aed',
    500: '#7e5ae3',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ae3;
$custom-light: #aa8aed;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ae3",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 255.766,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57684,
    "c": 0.19848,
    "h": 291
  },
  "luminance": 0.17294
}

Semantic roles & 50–950 ramp

primary
#7E5AE3
secondary
#D8E6B3
accent
#D312A0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7E5AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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