#7E5AEB#7E5AEB

#7E5AEB is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.3% C 0.208 H 289.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E5AEB
RGBrgb(126, 90, 235)
HSLhsl(255, 78%, 64%)
HSVhsv(255, 62%, 92%)
CMYKcmyk(46.4%, 61.7%, 0%, 7.8%)
CIE-LABlab(49.19, 48.73, -68.51)
CIE-LCHlch(49.19, 84.07, 305.42°)
OKLaboklab(58.27% 0.0705 -0.1959)
OKLCHoklch(58.27% 0.208 289.8)
XYZxyz(27.2515, 17.7451, 80.5704)
Luminance0.1775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AEB #C7EB5A
analogous
#5A7EEB #7E5AEB #C75AEB
triadic
#7E5AEB #EB7E5A #5AEB7E
tetradic
#7E5AEB #EB5A7E #C7EB5A #5AEBC7
square
#7E5AEB #EB5A7E #C7EB5A #5AEBC7
split-complementary
#7E5AEB #EBC75A #7EEB5A
monochromatic
#3D16B5 #5323E4 #7E5AEB #A991F2 #D3C7F8

Accessibility & contrast

On white

4.62
#7E5AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7E5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5AEB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AEB#FFFFFF#000000##FFFFFF
##7E5AEB1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#5B7C9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5aeb;
/* rgb */ color: rgb(126, 90, 235);
/* oklch */ color: oklch(58.3% 0.208 289.8);
Tailwind
colors: {
  custom: {
    50: '#ab8af2',
    500: '#7e5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aeb;
$custom-light: #ab8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aeb",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 254.897,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58267,
    "c": 0.20825,
    "h": 289.8
  },
  "luminance": 0.17746
}

Semantic roles & 50–950 ramp

primary
#7E5AEB
secondary
#DDEAB7
accent
#DB0BA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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