#7954DC#7954DC

#7954DC is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.8% C 0.198 H 291.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7954DC
RGBrgb(121, 84, 220)
HSLhsl(256, 66%, 60%)
HSVhsv(256, 62%, 86%)
CMYKcmyk(45%, 61.8%, 0%, 13.7%)
CIE-LABlab(46.41, 46.90, -64.55)
CIE-LCHlch(46.41, 79.79, 306.00°)
OKLaboklab(55.8% 0.0714 -0.1845)
OKLCHoklch(55.8% 0.198 291.1)
XYZxyz(23.9701, 15.5721, 69.4390)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954DC #B7DC54
analogous
#5473DC #7954DC #BD54DC
triadic
#7954DC #DC7954 #54DC79
tetradic
#7954DC #DC5473 #B7DC54 #54DCBD
square
#7954DC #DC5473 #B7DC54 #54DCBD
split-complementary
#7954DC #DCBD54 #73DC54
monochromatic
#3F1F97 #5529CA #7954DC #A187E6 #C9BAF1

Accessibility & contrast

On white

5.10
#7954DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7954DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954DC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954DC#FFFFFF#000000##FFFFFF
##7954DC1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7954dc;
/* rgb */ color: rgb(121, 84, 220);
/* oklch */ color: oklch(55.8% 0.198 291.1);
Tailwind
colors: {
  custom: {
    50: '#a786e8',
    500: '#7954dc',
    950: '#000000',
  },
}
SCSS
$custom: #7954dc;
$custom-light: #a786e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7954dc",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 256.324,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55799,
    "c": 0.19778,
    "h": 291.1
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#7954DC
secondary
#D2E0AC
accent
#E93FBB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7954DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7954DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva