#7E54DD#7E54DD

#7E54DD is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.199 H 293.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7E54DD
RGBrgb(126, 84, 221)
HSLhsl(258, 67%, 60%)
HSVhsv(258, 62%, 87%)
CMYKcmyk(43%, 62%, 0%, 13.3%)
CIE-LABlab(46.97, 48.18, -64.19)
CIE-LCHlch(46.97, 80.26, 306.89°)
OKLaboklab(56.35% 0.0779 -0.1832)
OKLCHoklch(56.35% 0.199 293)
XYZxyz(24.8221, 15.9960, 70.1723)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54DD #B3DD54
analogous
#546FDD #7E54DD #C254DD
triadic
#7E54DD #DD7E54 #54DD7E
tetradic
#7E54DD #DD546F #B3DD54 #54DDC2
square
#7E54DD #DD546F #B3DD54 #54DDC2
split-complementary
#7E54DD #DDC254 #6FDD54
monochromatic
#441E98 #5A28CB #7E54DD #A587E7 #CBBAF1

Accessibility & contrast

On white

5.00
#7E54DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7E54DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54DD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54DD#FFFFFF#000000##FFFFFF
##7E54DD1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E1
Deuteranopia (green-blind)
#006DDA
Tritanopia (blue-blind)
#637391
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e54dd;
/* rgb */ color: rgb(126, 84, 221);
/* oklch */ color: oklch(56.3% 0.199 293.0);
Tailwind
colors: {
  custom: {
    50: '#aa86e8',
    500: '#7e54dd',
    950: '#000000',
  },
}
SCSS
$custom: #7e54dd;
$custom-light: #aa86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54dd",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 258.394,
    "s": 66.829,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56345,
    "c": 0.1991,
    "h": 293
  },
  "luminance": 0.15997
}

Semantic roles & 50–950 ramp

primary
#7E54DD
secondary
#D1E1AC
accent
#EA3EB5
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E54DD

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

Preview Lab → · Contrast checker → · Palette generator →

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