#7954CC#7954CC

#7954CC is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.178 H 293.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7954CC
RGBrgb(121, 84, 204)
HSLhsl(259, 54%, 56%)
HSVhsv(259, 59%, 80%)
CMYKcmyk(40.7%, 58.8%, 0%, 20%)
CIE-LABlab(45.31, 42.50, -57.17)
CIE-LCHlch(45.31, 71.24, 306.63°)
OKLaboklab(54.65% 0.0721 -0.1627)
OKLCHoklch(54.65% 0.178 293.9)
XYZxyz(21.9517, 14.7647, 58.8083)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954CC #A7CC54
analogous
#546BCC #7954CC #B554CC
triadic
#7954CC #CC7954 #54CC79
tetradic
#7954CC #CC546B #A7CC54 #54CCB5
square
#7954CC #CC546B #A7CC54 #54CCB5
split-complementary
#7954CC #CCB554 #6BCC54
monochromatic
#422680 #5A34AF #7954CC #9E83DA #C3B2E8

Accessibility & contrast

On white

5.31
#7954CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7954CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954CC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954CC#FFFFFF#000000##FFFFFF
##7954CC1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD0
Deuteranopia (green-blind)
#1869C9
Tritanopia (blue-blind)
#636E88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7954cc;
/* rgb */ color: rgb(121, 84, 204);
/* oklch */ color: oklch(54.6% 0.178 293.9);
Tailwind
colors: {
  custom: {
    50: '#a585dc',
    500: '#7954cc',
    950: '#000000',
  },
}
SCSS
$custom: #7954cc;
$custom-light: #a585dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7954cc",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 258.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54649,
    "c": 0.17802,
    "h": 293.9
  },
  "luminance": 0.14765
}

Semantic roles & 50–950 ramp

primary
#7954CC
secondary
#C7D7A5
accent
#DD4AB0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7954CC

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

Preview Lab → · Contrast checker → · Palette generator →

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