#7A54E8#7A54E8

#7A54E8 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.8% C 0.212 H 289.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7A54E8
RGBrgb(122, 84, 232)
HSLhsl(255, 76%, 62%)
HSVhsv(255, 64%, 91%)
CMYKcmyk(47.4%, 63.8%, 0%, 9%)
CIE-LABlab(47.37, 50.42, -69.79)
CIE-LCHlch(47.37, 86.09, 305.85°)
OKLaboklab(56.79% 0.0716 -0.1998)
OKLCHoklch(56.79% 0.212 289.7)
XYZxyz(25.7577, 16.3034, 78.1180)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54E8 #C2E854
analogous
#5478E8 #7A54E8 #C454E8
triadic
#7A54E8 #E87A54 #54E87A
tetradic
#7A54E8 #E85478 #C2E854 #54E8C4
square
#7A54E8 #E85478 #C2E854 #54E8C4
split-complementary
#7A54E8 #E8C454 #78E854
monochromatic
#3D17AB #501EE1 #7A54E8 #A48AEF #CEC0F7

Accessibility & contrast

On white

4.93
#7A54E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7A54E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54E8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54E8#FFFFFF#000000##FFFFFF
##7A54E81.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073ED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#567897
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a54e8;
/* rgb */ color: rgb(122, 84, 232);
/* oklch */ color: oklch(56.8% 0.212 289.7);
Tailwind
colors: {
  custom: {
    50: '#a986f0',
    500: '#7a54e8',
    950: '#000000',
  },
}
SCSS
$custom: #7a54e8;
$custom-light: #a986f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54e8",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 255.405,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56792,
    "c": 0.21227,
    "h": 289.7
  },
  "luminance": 0.16304
}

Semantic roles & 50–950 ramp

primary
#7A54E8
secondary
#D9E7B1
accent
#D80DA4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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