#7E5ABA#7E5ABA

#7E5ABA is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.9% C 0.147 H 298.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7E5ABA
RGBrgb(126, 90, 186)
HSLhsl(263, 41%, 54%)
HSVhsv(263, 52%, 73%)
CMYKcmyk(32.3%, 51.6%, 0%, 27.1%)
CIE-LABlab(46.03, 35.47, -45.56)
CIE-LCHlch(46.03, 57.74, 307.90°)
OKLaboklab(54.94% 0.0707 -0.1285)
OKLCHoklch(54.94% 0.147 298.8)
XYZxyz(21.1211, 15.2929, 48.2839)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5ABA #96BA5A
analogous
#5A66BA #7E5ABA #AE5ABA
triadic
#7E5ABA #BA7E5A #5ABA7E
tetradic
#7E5ABA #BA5A66 #96BA5A #5ABAAE
square
#7E5ABA #BA5A66 #96BA5A #5ABAAE
split-complementary
#7E5ABA #BAAE5A #66BA5A
monochromatic
#452D6C #603F97 #7E5ABA #A085CC #C1B0DE

Accessibility & contrast

On white

5.17
#7E5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7E5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5ABA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5ABA#FFFFFF#000000##FFFFFF
##7E5ABA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376DBD
Deuteranopia (green-blind)
#416CB8
Tritanopia (blue-blind)
#716C81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e5aba;
/* rgb */ color: rgb(126, 90, 186);
/* oklch */ color: oklch(54.9% 0.147 298.8);
Tailwind
colors: {
  custom: {
    50: '#a689cf',
    500: '#7e5aba',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aba;
$custom-light: #a689cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aba",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 262.5,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54943,
    "c": 0.14667,
    "h": 298.8
  },
  "luminance": 0.15293
}

Semantic roles & 50–950 ramp

primary
#7E5ABA
secondary
#BDCCA3
accent
#D157A3
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7E5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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