#7E5AEC#7E5AEC

#7E5AEC is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.3% C 0.209 H 289.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7E5AEC
RGBrgb(126, 90, 236)
HSLhsl(255, 79%, 64%)
HSVhsv(255, 62%, 93%)
CMYKcmyk(46.6%, 61.9%, 0%, 7.5%)
CIE-LABlab(49.26, 49.01, -68.96)
CIE-LCHlch(49.26, 84.60, 305.40°)
OKLaboklab(58.34% 0.0705 -0.1973)
OKLCHoklch(58.34% 0.209 289.7)
XYZxyz(27.3964, 17.8030, 81.3334)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AEC #C8EC5A
analogous
#5A7FEC #7E5AEC #C75AEC
triadic
#7E5AEC #EC7E5A #5AEC7E
tetradic
#7E5AEC #EC5A7F #C8EC5A #5AECC7
square
#7E5AEC #EC5A7F #C8EC5A #5AECC7
split-complementary
#7E5AEC #ECC75A #7FEC5A
monochromatic
#3D15B7 #5323E6 #7E5AEC #A991F2 #D4C8F9

Accessibility & contrast

On white

4.60
#7E5AEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7E5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5AEC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AEC#FFFFFF#000000##FFFFFF
##7E5AEC1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0072E9
Tritanopia (blue-blind)
#5B7C9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5aec;
/* rgb */ color: rgb(126, 90, 236);
/* oklch */ color: oklch(58.3% 0.209 289.7);
Tailwind
colors: {
  custom: {
    50: '#ab8af3',
    500: '#7e5aec',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aec;
$custom-light: #ab8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aec",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 254.795,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58341,
    "c": 0.20946,
    "h": 289.7
  },
  "luminance": 0.17804
}

Semantic roles & 50–950 ramp

primary
#7E5AEC
secondary
#DEEBB7
accent
#DC0AA8
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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