#7E5ACA#7E5ACA

#7E5ACA is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.0% C 0.167 H 295.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7E5ACA
RGBrgb(126, 90, 202)
HSLhsl(259, 51%, 57%)
HSVhsv(259, 55%, 79%)
CMYKcmyk(37.6%, 55.4%, 0%, 20.8%)
CIE-LABlab(46.99, 39.70, -53.29)
CIE-LCHlch(46.99, 66.45, 306.69°)
OKLaboklab(55.96% 0.0714 -0.1512)
OKLCHoklch(55.96% 0.167 295.3)
XYZxyz(22.9183, 16.0118, 57.7488)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5ACA #A6CA5A
analogous
#5A6ECA #7E5ACA #B65ACA
triadic
#7E5ACA #CA7E5A #5ACA7E
tetradic
#7E5ACA #CA5A6E #A6CA5A #5ACAB6
square
#7E5ACA #CA5A6E #A6CA5A #5ACAB6
split-complementary
#7E5ACA #CAB65A #6ECA5A
monochromatic
#452980 #5E38AF #7E5ACA #A288D9 #C6B7E8

Accessibility & contrast

On white

5.00
#7E5ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7E5ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5ACA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5ACA#FFFFFF#000000##FFFFFF
##7E5ACA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2570CE
Deuteranopia (green-blind)
#306EC7
Tritanopia (blue-blind)
#6C7189
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e5aca;
/* rgb */ color: rgb(126, 90, 202);
/* oklch */ color: oklch(56.0% 0.167 295.3);
Tailwind
colors: {
  custom: {
    50: '#a88adb',
    500: '#7e5aca',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aca;
$custom-light: #a88adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aca",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 259.286,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55961,
    "c": 0.16722,
    "h": 295.3
  },
  "luminance": 0.16012
}

Semantic roles & 50–950 ramp

primary
#7E5ACA
secondary
#C8D7A9
accent
#DB4DAD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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