#7A54DC#7A54DC

#7A54DC is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.198 H 291.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7A54DC
RGBrgb(122, 84, 220)
HSLhsl(257, 66%, 60%)
HSVhsv(257, 62%, 86%)
CMYKcmyk(44.5%, 61.8%, 0%, 13.7%)
CIE-LABlab(46.50, 47.10, -64.39)
CIE-LCHlch(46.50, 79.78, 306.18°)
OKLaboklab(55.89% 0.0727 -0.184)
OKLCHoklch(55.89% 0.198 291.6)
XYZxyz(24.1110, 15.6447, 69.4456)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54DC #B6DC54
analogous
#5472DC #7A54DC #BE54DC
triadic
#7A54DC #DC7A54 #54DC7A
tetradic
#7A54DC #DC5472 #B6DC54 #54DCBE
square
#7A54DC #DC5472 #B6DC54 #54DCBE
split-complementary
#7A54DC #DCBE54 #72DC54
monochromatic
#401F97 #5629CA #7A54DC #A287E6 #C9BAF1

Accessibility & contrast

On white

5.09
#7A54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7A54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54DC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54DC#FFFFFF#000000##FFFFFF
##7A54DC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#5D7390
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7a54dc;
/* rgb */ color: rgb(122, 84, 220);
/* oklch */ color: oklch(55.9% 0.198 291.6);
Tailwind
colors: {
  custom: {
    50: '#a786e8',
    500: '#7a54dc',
    950: '#000000',
  },
}
SCSS
$custom: #7a54dc;
$custom-light: #a786e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54dc",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 256.765,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55892,
    "c": 0.1978,
    "h": 291.6
  },
  "luminance": 0.15646
}

Semantic roles & 50–950 ramp

primary
#7A54DC
secondary
#D2E0AC
accent
#E93FB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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