#7E54EA#7E54EA

#7E54EA is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.3% C 0.215 H 290.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E54EA
RGBrgb(126, 84, 234)
HSLhsl(257, 78%, 62%)
HSVhsv(257, 64%, 92%)
CMYKcmyk(46.2%, 64.1%, 0%, 8.2%)
CIE-LABlab(47.90, 51.71, -70.03)
CIE-LCHlch(47.90, 87.06, 306.44°)
OKLaboklab(57.31% 0.0767 -0.2004)
OKLCHoklch(57.31% 0.215 290.9)
XYZxyz(26.6216, 16.7158, 79.6497)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54EA #C0EA54
analogous
#5475EA #7E54EA #C954EA
triadic
#7E54EA #EA7E54 #54EA7E
tetradic
#7E54EA #EA5475 #C0EA54 #54EAC9
square
#7E54EA #EA5475 #C0EA54 #54EAC9
split-complementary
#7E54EA #EAC954 #75EA54
monochromatic
#4015AE #551DE3 #7E54EA #A78BF1 #D0C1F7

Accessibility & contrast

On white

4.83
#7E54EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7E54EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54EA
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54EA#FFFFFF#000000##FFFFFF
##7E54EA1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#006EE7
Tritanopia (blue-blind)
#5C7898
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e54ea;
/* rgb */ color: rgb(126, 84, 234);
/* oklch */ color: oklch(57.3% 0.215 290.9);
Tailwind
colors: {
  custom: {
    50: '#ab86f2',
    500: '#7e54ea',
    950: '#000000',
  },
}
SCSS
$custom: #7e54ea;
$custom-light: #ab86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54ea",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 256.8,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57312,
    "c": 0.21462,
    "h": 290.9
  },
  "luminance": 0.16717
}

Semantic roles & 50–950 ramp

primary
#7E54EA
secondary
#D9E8B2
accent
#DA0BA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E54EA

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

Preview Lab → · Contrast checker → · Palette generator →

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