#7E5AEA#7E5AEA

#7E5AEA is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.2% C 0.207 H 289.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E5AEA
RGBrgb(126, 90, 234)
HSLhsl(255, 77%, 64%)
HSVhsv(255, 62%, 92%)
CMYKcmyk(46.2%, 61.5%, 0%, 8.2%)
CIE-LABlab(49.11, 48.45, -68.06)
CIE-LCHlch(49.11, 83.55, 305.45°)
OKLaboklab(58.19% 0.0706 -0.1946)
OKLCHoklch(58.19% 0.207 289.9)
XYZxyz(27.1074, 17.6874, 79.8117)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AEA #C6EA5A
analogous
#5A7EEA #7E5AEA #C65AEA
triadic
#7E5AEA #EA7E5A #5AEA7E
tetradic
#7E5AEA #EA5A7E #C6EA5A #5AEAC6
square
#7E5AEA #EA5A7E #C6EA5A #5AEAC6
split-complementary
#7E5AEA #EAC65A #7EEA5A
monochromatic
#3E17B3 #5424E3 #7E5AEA #A890F1 #D3C7F8

Accessibility & contrast

On white

4.63
#7E5AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7E5AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5AEA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AEA#FFFFFF#000000##FFFFFF
##7E5AEA1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#5C7C9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5aea;
/* rgb */ color: rgb(126, 90, 234);
/* oklch */ color: oklch(58.2% 0.207 289.9);
Tailwind
colors: {
  custom: {
    50: '#ab8af2',
    500: '#7e5aea',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aea;
$custom-light: #ab8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aea",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 255,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58194,
    "c": 0.20704,
    "h": 289.9
  },
  "luminance": 0.17688
}

Semantic roles & 50–950 ramp

primary
#7E5AEA
secondary
#DDE9B6
accent
#DA0CA6
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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