#7954EB#7954EB

#7954EB is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.9% C 0.216 H 288.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7954EB
RGBrgb(121, 84, 235)
HSLhsl(255, 79%, 63%)
HSVhsv(255, 64%, 92%)
CMYKcmyk(48.5%, 64.3%, 0%, 7.8%)
CIE-LABlab(47.50, 51.07, -71.27)
CIE-LCHlch(47.50, 87.68, 305.62°)
OKLaboklab(56.93% 0.07 -0.2042)
OKLCHoklch(56.93% 0.216 288.9)
XYZxyz(26.0466, 16.4026, 80.3748)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954EB #C6EB54
analogous
#547AEB #7954EB #C554EB
triadic
#7954EB #EB7954 #54EB79
tetradic
#7954EB #EB547A #C6EB54 #54EBC5
square
#7954EB #EB547A #C6EB54 #54EBC5
split-complementary
#7954EB #EBC554 #7AEB54
monochromatic
#3B15B0 #4E1DE5 #7954EB #A48BF1 #CFC2F8

Accessibility & contrast

On white

4.91
#7954EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7954EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954EB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954EB#FFFFFF#000000##FFFFFF
##7954EB1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006DE8
Tritanopia (blue-blind)
#527998
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7954eb;
/* rgb */ color: rgb(121, 84, 235);
/* oklch */ color: oklch(56.9% 0.216 288.9);
Tailwind
colors: {
  custom: {
    50: '#a886f2',
    500: '#7954eb',
    950: '#000000',
  },
}
SCSS
$custom: #7954eb;
$custom-light: #a886f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7954eb",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 254.702,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56932,
    "c": 0.21588,
    "h": 288.9
  },
  "luminance": 0.16404
}

Semantic roles & 50–950 ramp

primary
#7954EB
secondary
#DBE9B2
accent
#DB0AA8
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7954EB

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

Preview Lab → · Contrast checker → · Palette generator →

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