#7E5ABE#7E5ABE

#7E5ABE is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.2% C 0.152 H 297.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7E5ABE
RGBrgb(126, 90, 190)
HSLhsl(262, 43%, 55%)
HSVhsv(262, 53%, 75%)
CMYKcmyk(33.7%, 52.6%, 0%, 25.5%)
CIE-LABlab(46.27, 36.51, -47.52)
CIE-LCHlch(46.27, 59.92, 307.54°)
OKLaboklab(55.19% 0.0709 -0.1342)
OKLCHoklch(55.19% 0.152 297.8)
XYZxyz(21.5523, 15.4654, 50.5549)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5ABE #9ABE5A
analogous
#5A68BE #7E5ABE #B05ABE
triadic
#7E5ABE #BE7E5A #5ABE7E
tetradic
#7E5ABE #BE5A68 #9ABE5A #5ABEB0
square
#7E5ABE #BE5A68 #9ABE5A #5ABEB0
split-complementary
#7E5ABE #BEB05A #68BE5A
monochromatic
#452D71 #603E9D #7E5ABE #A086CF #C3B2E1

Accessibility & contrast

On white

5.13
#7E5ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7E5ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5ABE
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5ABE#FFFFFF#000000##FFFFFF
##7E5ABE1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346EC1
Deuteranopia (green-blind)
#3D6DBC
Tritanopia (blue-blind)
#706E83
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e5abe;
/* rgb */ color: rgb(126, 90, 190);
/* oklch */ color: oklch(55.2% 0.152 297.8);
Tailwind
colors: {
  custom: {
    50: '#a789d2',
    500: '#7e5abe',
    950: '#000000',
  },
}
SCSS
$custom: #7e5abe;
$custom-light: #a789d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5abe",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 190
  },
  "hsl": {
    "h": 261.6,
    "s": 43.478,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55191,
    "c": 0.15184,
    "h": 297.8
  },
  "luminance": 0.15466
}

Semantic roles & 50–950 ramp

primary
#7E5ABE
secondary
#C0CFA5
accent
#D355A6
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7E5ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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