#7A54EB#7A54EB

#7A54EB is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.0% C 0.216 H 289.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7A54EB
RGBrgb(122, 84, 235)
HSLhsl(255, 79%, 63%)
HSVhsv(255, 64%, 92%)
CMYKcmyk(48.1%, 64.3%, 0%, 7.8%)
CIE-LABlab(47.59, 51.25, -71.12)
CIE-LCHlch(47.59, 87.66, 305.78°)
OKLaboklab(57.02% 0.0713 -0.2037)
OKLCHoklch(57.02% 0.216 289.3)
XYZxyz(26.1875, 16.4753, 80.3814)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54EB #C5EB54
analogous
#547AEB #7A54EB #C554EB
triadic
#7A54EB #EB7A54 #54EB7A
tetradic
#7A54EB #EB547A #C5EB54 #54EBC5
square
#7A54EB #EB547A #C5EB54 #54EBC5
split-complementary
#7A54EB #EBC554 #7AEB54
monochromatic
#3C15B0 #4F1DE5 #7A54EB #A58BF1 #CFC2F8

Accessibility & contrast

On white

4.89
#7A54EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7A54EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54EB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54EB#FFFFFF#000000##FFFFFF
##7A54EB1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006DE8
Tritanopia (blue-blind)
#547998
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a54eb;
/* rgb */ color: rgb(122, 84, 235);
/* oklch */ color: oklch(57.0% 0.216 289.3);
Tailwind
colors: {
  custom: {
    50: '#a986f2',
    500: '#7a54eb',
    950: '#000000',
  },
}
SCSS
$custom: #7a54eb;
$custom-light: #a986f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54eb",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 255.099,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57022,
    "c": 0.21585,
    "h": 289.3
  },
  "luminance": 0.16476
}

Semantic roles & 50–950 ramp

primary
#7A54EB
secondary
#DBE9B2
accent
#DB0AA7
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A54EB

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

Preview Lab → · Contrast checker → · Palette generator →

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