#7E54BB#7E54BB

#7E54BB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.0% C 0.157 H 300.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7E54BB
RGBrgb(126, 84, 187)
HSLhsl(264, 43%, 53%)
HSVhsv(264, 55%, 73%)
CMYKcmyk(32.6%, 55.1%, 0%, 26.7%)
CIE-LABlab(44.75, 39.17, -48.19)
CIE-LCHlch(44.75, 62.10, 309.11°)
OKLaboklab(54.01% 0.0786 -0.1362)
OKLCHoklch(54.01% 0.157 300)
XYZxyz(20.7420, 14.3640, 48.6838)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54BB #91BB54
analogous
#545DBB #7E54BB #B154BB
triadic
#7E54BB #BB7E54 #54BB7E
tetradic
#7E54BB #BB545D #91BB54 #54BBB1
square
#7E54BB #BB545D #91BB54 #54BBB1
split-complementary
#7E54BB #BBB154 #5DBB54
monochromatic
#442A6A #613C96 #7E54BB #9F80CC #C0ACDE

Accessibility & contrast

On white

5.42
#7E54BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7E54BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54BB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54BB#FFFFFF#000000##FFFFFF
##7E54BB1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6ABE
Deuteranopia (green-blind)
#3869B9
Tritanopia (blue-blind)
#71687F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e54bb;
/* rgb */ color: rgb(126, 84, 187);
/* oklch */ color: oklch(54.0% 0.157 300.0);
Tailwind
colors: {
  custom: {
    50: '#a785d0',
    500: '#7e54bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e54bb;
$custom-light: #a785d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54bb",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 264.466,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54013,
    "c": 0.15728,
    "h": 300
  },
  "luminance": 0.14364
}

Semantic roles & 50–950 ramp

primary
#7E54BB
secondary
#B9CC9F
accent
#D355A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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