#7E54DC#7E54DC

#7E54DC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.198 H 293.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7E54DC
RGBrgb(126, 84, 220)
HSLhsl(259, 66%, 60%)
HSVhsv(259, 62%, 86%)
CMYKcmyk(42.7%, 61.8%, 0%, 13.7%)
CIE-LABlab(46.90, 47.91, -63.73)
CIE-LCHlch(46.90, 79.73, 306.93°)
OKLaboklab(56.27% 0.078 -0.1819)
OKLCHoklch(56.27% 0.198 293.2)
XYZxyz(24.6893, 15.9429, 69.4727)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54DC #B2DC54
analogous
#546EDC #7E54DC #C254DC
triadic
#7E54DC #DC7E54 #54DC7E
tetradic
#7E54DC #DC546E #B2DC54 #54DCC2
square
#7E54DC #DC546E #B2DC54 #54DCC2
split-complementary
#7E54DC #DCC254 #6EDC54
monochromatic
#441F97 #5B29CA #7E54DC #A487E6 #CBBAF1

Accessibility & contrast

On white

5.01
#7E54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7E54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54DC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54DC#FFFFFF#000000##FFFFFF
##7E54DC1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#647390
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e54dc;
/* rgb */ color: rgb(126, 84, 220);
/* oklch */ color: oklch(56.3% 0.198 293.2);
Tailwind
colors: {
  custom: {
    50: '#aa86e8',
    500: '#7e54dc',
    950: '#000000',
  },
}
SCSS
$custom: #7e54dc;
$custom-light: #aa86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54dc",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 258.529,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56272,
    "c": 0.1979,
    "h": 293.2
  },
  "luminance": 0.15944
}

Semantic roles & 50–950 ramp

primary
#7E54DC
secondary
#D0E0AC
accent
#E93FB4
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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