#7954C8#7954C8

#7954C8 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.173 H 294.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7954C8
RGBrgb(121, 84, 200)
HSLhsl(259, 51%, 56%)
HSVhsv(259, 58%, 78%)
CMYKcmyk(39.5%, 58%, 0%, 21.6%)
CIE-LABlab(45.05, 41.41, -55.29)
CIE-LCHlch(45.05, 69.08, 306.84°)
OKLaboklab(54.37% 0.0722 -0.1572)
OKLCHoklch(54.37% 0.173 294.7)
XYZxyz(21.4781, 14.5753, 56.3141)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954C8 #A3C854
analogous
#5469C8 #7954C8 #B354C8
triadic
#7954C8 #C87954 #54C879
tetradic
#7954C8 #C85469 #A3C854 #54C8B3
square
#7954C8 #C85469 #A3C854 #54C8B3
split-complementary
#7954C8 #C8B354 #69C854
monochromatic
#42277A #5B36A9 #7954C8 #9D82D7 #C2B1E6

Accessibility & contrast

On white

5.36
#7954C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7954C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954C8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954C8#FFFFFF#000000##FFFFFF
##7954C81.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6CCC
Deuteranopia (green-blind)
#2169C5
Tritanopia (blue-blind)
#656D86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7954c8;
/* rgb */ color: rgb(121, 84, 200);
/* oklch */ color: oklch(54.4% 0.173 294.7);
Tailwind
colors: {
  custom: {
    50: '#a585d9',
    500: '#7954c8',
    950: '#000000',
  },
}
SCSS
$custom: #7954c8;
$custom-light: #a585d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7954c8",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 259.138,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54372,
    "c": 0.17301,
    "h": 294.7
  },
  "luminance": 0.14576
}

Semantic roles & 50–950 ramp

primary
#7954C8
secondary
#C5D4A4
accent
#DB4DAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7954C8

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

Preview Lab → · Contrast checker → · Palette generator →

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