#7E5EEA#7E5EEA

#7E5EEA is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 58.8% C 0.202 H 289.2°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E5EEA
RGBrgb(126, 94, 234)
HSLhsl(254, 77%, 64%)
HSVhsv(254, 60%, 92%)
CMYKcmyk(46.2%, 59.8%, 0%, 8.2%)
CIE-LABlab(49.95, 46.23, -66.70)
CIE-LCHlch(49.95, 81.16, 304.73°)
OKLaboklab(58.81% 0.0664 -0.1906)
OKLCHoklch(58.81% 0.202 289.2)
XYZxyz(27.4539, 18.3805, 79.9272)
Luminance0.1838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EEA #CAEA5E
analogous
#5E84EA #7E5EEA #C45EEA
triadic
#7E5EEA #EA7E5E #5EEA7E
tetradic
#7E5EEA #EA5E84 #CAEA5E #5EEAC4
square
#7E5EEA #EA5E84 #CAEA5E #5EEAC4
split-complementary
#7E5EEA #EAC45E #84EA5E
monochromatic
#3C18B6 #5328E3 #7E5EEA #A994F1 #D5CAF8

Accessibility & contrast

On white

4.49
#7E5EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7E5EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5EEA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EEA#FFFFFF#000000##000000
##7E5EEA1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#5C7E9B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5eea;
/* rgb */ color: rgb(126, 94, 234);
/* oklch */ color: oklch(58.8% 0.202 289.2);
Tailwind
colors: {
  custom: {
    50: '#ab8df2',
    500: '#7e5eea',
    950: '#000000',
  },
}
SCSS
$custom: #7e5eea;
$custom-light: #ab8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5eea",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 234
  },
  "hsl": {
    "h": 253.714,
    "s": 76.923,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58806,
    "c": 0.20185,
    "h": 289.2
  },
  "luminance": 0.18382
}

Semantic roles & 50–950 ramp

primary
#7E5EEA
secondary
#DFEABA
accent
#D90CAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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