#7E54DA#7E54DA

#7E54DA is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.1% C 0.195 H 293.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E54DA
RGBrgb(126, 84, 218)
HSLhsl(259, 64%, 59%)
HSVhsv(259, 61%, 85%)
CMYKcmyk(42.2%, 61.5%, 0%, 14.5%)
CIE-LABlab(46.76, 47.37, -62.82)
CIE-LCHlch(46.76, 78.68, 307.02°)
OKLaboklab(56.13% 0.0781 -0.1792)
OKLCHoklch(56.13% 0.195 293.6)
XYZxyz(24.4260, 15.8376, 68.0861)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54DA #B0DA54
analogous
#546DDA #7E54DA #C154DA
triadic
#7E54DA #DA7E54 #54DA7E
tetradic
#7E54DA #DA546D #B0DA54 #54DAC1
square
#7E54DA #DA546D #B0DA54 #54DAC1
split-complementary
#7E54DA #DAC154 #6DDA54
monochromatic
#442094 #5B2BC6 #7E54DA #A486E5 #CAB9F0

Accessibility & contrast

On white

5.04
#7E54DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7E54DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54DA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54DA#FFFFFF#000000##FFFFFF
##7E54DA1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DE
Deuteranopia (green-blind)
#006CD7
Tritanopia (blue-blind)
#65728F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e54da;
/* rgb */ color: rgb(126, 84, 218);
/* oklch */ color: oklch(56.1% 0.195 293.6);
Tailwind
colors: {
  custom: {
    50: '#a986e6',
    500: '#7e54da',
    950: '#000000',
  },
}
SCSS
$custom: #7e54da;
$custom-light: #a986e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54da",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 218
  },
  "hsl": {
    "h": 258.806,
    "s": 64.423,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56127,
    "c": 0.19549,
    "h": 293.6
  },
  "luminance": 0.15838
}

Semantic roles & 50–950 ramp

primary
#7E54DA
secondary
#CFDFAB
accent
#E740B3
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7E54DA

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

Preview Lab → · Contrast checker → · Palette generator →

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