#7A54EC#7A54EC

#7A54EC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.1% C 0.217 H 289.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7A54EC
RGBrgb(122, 84, 236)
HSLhsl(255, 80%, 63%)
HSVhsv(255, 64%, 93%)
CMYKcmyk(48.3%, 64.4%, 0%, 7.5%)
CIE-LABlab(47.67, 51.53, -71.56)
CIE-LCHlch(47.67, 88.18, 305.76°)
OKLaboklab(57.1% 0.0712 -0.205)
OKLCHoklch(57.1% 0.217 289.2)
XYZxyz(26.3323, 16.5332, 81.1444)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54EC #C6EC54
analogous
#547AEC #7A54EC #C654EC
triadic
#7A54EC #EC7A54 #54EC7A
tetradic
#7A54EC #EC547A #C6EC54 #54ECC6
square
#7A54EC #EC547A #C6EC54 #54ECC6
split-complementary
#7A54EC #ECC654 #7AEC54
monochromatic
#3B14B2 #4F1DE6 #7A54EC #A58BF2 #D0C2F8

Accessibility & contrast

On white

4.88
#7A54EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7A54EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54EC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54EC#FFFFFF#000000##FFFFFF
##7A54EC1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#547999
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a54ec;
/* rgb */ color: rgb(122, 84, 236);
/* oklch */ color: oklch(57.1% 0.217 289.2);
Tailwind
colors: {
  custom: {
    50: '#a986f3',
    500: '#7a54ec',
    950: '#000000',
  },
}
SCSS
$custom: #7a54ec;
$custom-light: #a986f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54ec",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 255,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.571,
    "c": 0.21704,
    "h": 289.2
  },
  "luminance": 0.16534
}

Semantic roles & 50–950 ramp

primary
#7A54EC
secondary
#DCE9B2
accent
#DC09A8
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A54EC

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

Preview Lab → · Contrast checker → · Palette generator →

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