#7E54DB#7E54DB

#7E54DB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.197 H 293.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7E54DB
RGBrgb(126, 84, 219)
HSLhsl(259, 65%, 59%)
HSVhsv(259, 62%, 86%)
CMYKcmyk(42.5%, 61.6%, 0%, 14.1%)
CIE-LABlab(46.83, 47.64, -63.28)
CIE-LCHlch(46.83, 79.20, 306.97°)
OKLaboklab(56.2% 0.078 -0.1805)
OKLCHoklch(56.2% 0.197 293.4)
XYZxyz(24.5572, 15.8901, 68.7773)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54DB #B1DB54
analogous
#546EDB #7E54DB #C254DB
triadic
#7E54DB #DB7E54 #54DB7E
tetradic
#7E54DB #DB546E #B1DB54 #54DBC2
square
#7E54DB #DB546E #B1DB54 #54DBC2
split-complementary
#7E54DB #DBC254 #6EDB54
monochromatic
#441F95 #5B2AC8 #7E54DB #A487E6 #CAB9F0

Accessibility & contrast

On white

5.03
#7E54DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7E54DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54DB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54DB#FFFFFF#000000##FFFFFF
##7E54DB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e54db;
/* rgb */ color: rgb(126, 84, 219);
/* oklch */ color: oklch(56.2% 0.197 293.4);
Tailwind
colors: {
  custom: {
    50: '#aa86e7',
    500: '#7e54db',
    950: '#000000',
  },
}
SCSS
$custom: #7e54db;
$custom-light: #aa86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54db",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 258.667,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.562,
    "c": 0.19669,
    "h": 293.4
  },
  "luminance": 0.15891
}

Semantic roles & 50–950 ramp

primary
#7E54DB
secondary
#CFE0AB
accent
#E840B4
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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