#7E54D7#7E54D7

#7E54D7 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.9% C 0.192 H 294.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7E54D7
RGBrgb(126, 84, 215)
HSLhsl(259, 62%, 59%)
HSVhsv(259, 61%, 84%)
CMYKcmyk(41.4%, 60.9%, 0%, 15.7%)
CIE-LABlab(46.55, 46.56, -61.44)
CIE-LCHlch(46.55, 77.09, 307.16°)
OKLaboklab(55.91% 0.0783 -0.1752)
OKLCHoklch(55.91% 0.192 294.1)
XYZxyz(24.0370, 15.6820, 66.0373)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54D7 #ADD754
analogous
#546BD7 #7E54D7 #BF54D7
triadic
#7E54D7 #D77E54 #54D77E
tetradic
#7E54D7 #D7546B #ADD754 #54D7BF
square
#7E54D7 #D7546B #ADD754 #54D7BF
split-complementary
#7E54D7 #D7BF54 #6BD754
monochromatic
#45218F #5C2DC1 #7E54D7 #A386E3 #C9B7EE

Accessibility & contrast

On white

5.08
#7E54D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7E54D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54D7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54D7#FFFFFF#000000##FFFFFF
##7E54D71.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#66718E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e54d7;
/* rgb */ color: rgb(126, 84, 215);
/* oklch */ color: oklch(55.9% 0.192 294.1);
Tailwind
colors: {
  custom: {
    50: '#a986e4',
    500: '#7e54d7',
    950: '#000000',
  },
}
SCSS
$custom: #7e54d7;
$custom-light: #a986e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54d7",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 259.237,
    "s": 62.085,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55912,
    "c": 0.19186,
    "h": 294.1
  },
  "luminance": 0.15683
}

Semantic roles & 50–950 ramp

primary
#7E54D7
secondary
#CDDDA9
accent
#E543B1
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7E54D7

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

Preview Lab → · Contrast checker → · Palette generator →

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