#7E54AB#7E54AB

#7E54AB is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.0% C 0.137 H 304.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7E54AB
RGBrgb(126, 84, 171)
HSLhsl(269, 34%, 50%)
HSVhsv(269, 51%, 67%)
CMYKcmyk(26.3%, 50.9%, 0%, 32.9%)
CIE-LABlab(43.82, 35.13, -40.29)
CIE-LCHlch(43.82, 53.45, 311.08°)
OKLaboklab(53.03% 0.0775 -0.1131)
OKLCHoklch(53.03% 0.137 304.4)
XYZxyz(19.1236, 13.7166, 40.1603)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54AB #81AB54
analogous
#5455AB #7E54AB #AA54AB
triadic
#7E54AB #AB7E54 #54AB7E
tetradic
#7E54AB #AB5455 #81AB54 #54ABAA
square
#7E54AB #AB5455 #81AB54 #54ABAA
split-complementary
#7E54AB #ABAA54 #55AB54
monochromatic
#422C59 #604082 #7E54AB #9D7DBF #BCA6D3

Accessibility & contrast

On white

5.61
#7E54AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7E54AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54AB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54AB#FFFFFF#000000##FFFFFF
##7E54AB1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AE
Deuteranopia (green-blind)
#4568A9
Tritanopia (blue-blind)
#766477
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e54ab;
/* rgb */ color: rgb(126, 84, 171);
/* oklch */ color: oklch(53.0% 0.137 304.4);
Tailwind
colors: {
  custom: {
    50: '#a685c4',
    500: '#7e54ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e54ab;
$custom-light: #a685c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54ab",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 268.966,
    "s": 34.118,
    "l": 50
  },
  "oklch": {
    "l": 0.53027,
    "c": 0.13713,
    "h": 304.4
  },
  "luminance": 0.13717
}

Semantic roles & 50–950 ramp

primary
#7E54AB
secondary
#AEC19A
accent
#CA5E96
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #7E54AB

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

Preview Lab → · Contrast checker → · Palette generator →

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