#7E54BD#7E54BD

#7E54BD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.160 H 299.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E54BD
RGBrgb(126, 84, 189)
HSLhsl(264, 44%, 54%)
HSVhsv(264, 56%, 74%)
CMYKcmyk(33.3%, 55.6%, 0%, 25.9%)
CIE-LABlab(44.87, 39.69, -49.16)
CIE-LCHlch(44.87, 63.18, 308.91°)
OKLaboklab(54.14% 0.0787 -0.1391)
OKLCHoklch(54.14% 0.16 299.5)
XYZxyz(20.9576, 14.4502, 49.8193)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54BD #93BD54
analogous
#545EBD #7E54BD #B254BD
triadic
#7E54BD #BD7E54 #54BD7E
tetradic
#7E54BD #BD545E #93BD54 #54BDB2
square
#7E54BD #BD545E #93BD54 #54BDB2
split-complementary
#7E54BD #BDB254 #5EBD54
monochromatic
#452A6D #613B99 #7E54BD #9F80CE #C1ACDF

Accessibility & contrast

On white

5.40
#7E54BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7E54BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54BD
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54BD#FFFFFF#000000##FFFFFF
##7E54BD1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286AC1
Deuteranopia (green-blind)
#3669BB
Tritanopia (blue-blind)
#716980
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e54bd;
/* rgb */ color: rgb(126, 84, 189);
/* oklch */ color: oklch(54.1% 0.160 299.5);
Tailwind
colors: {
  custom: {
    50: '#a785d1',
    500: '#7e54bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e54bd;
$custom-light: #a785d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54bd",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 264,
    "s": 44.304,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54141,
    "c": 0.15979,
    "h": 299.5
  },
  "luminance": 0.1445
}

Semantic roles & 50–950 ramp

primary
#7E54BD
secondary
#BBCDA0
accent
#D454A1
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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