#7954EA#7954EA

#7954EA is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.9% C 0.215 H 289.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7954EA
RGBrgb(121, 84, 234)
HSLhsl(255, 78%, 62%)
HSVhsv(255, 64%, 92%)
CMYKcmyk(48.3%, 64.1%, 0%, 8.2%)
CIE-LABlab(47.42, 50.79, -70.83)
CIE-LCHlch(47.42, 87.16, 305.64°)
OKLaboklab(56.86% 0.0701 -0.2029)
OKLCHoklch(56.86% 0.215 289.1)
XYZxyz(25.9025, 16.3450, 79.6160)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954EA #C5EA54
analogous
#547AEA #7954EA #C454EA
triadic
#7954EA #EA7954 #54EA79
tetradic
#7954EA #EA547A #C5EA54 #54EAC4
square
#7954EA #EA547A #C5EA54 #54EAC4
split-complementary
#7954EA #EAC454 #7AEA54
monochromatic
#3B15AE #4E1DE3 #7954EA #A48BF1 #CEC1F7

Accessibility & contrast

On white

4.92
#7954EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7954EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954EA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954EA#FFFFFF#000000##FFFFFF
##7954EA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#006DE7
Tritanopia (blue-blind)
#537898
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7954ea;
/* rgb */ color: rgb(121, 84, 234);
/* oklch */ color: oklch(56.9% 0.215 289.1);
Tailwind
colors: {
  custom: {
    50: '#a886f2',
    500: '#7954ea',
    950: '#000000',
  },
}
SCSS
$custom: #7954ea;
$custom-light: #a886f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7954ea",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 254.8,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56855,
    "c": 0.21469,
    "h": 289.1
  },
  "luminance": 0.16346
}

Semantic roles & 50–950 ramp

primary
#7954EA
secondary
#DBE8B2
accent
#DA0BA7
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7954EA

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

Preview Lab → · Contrast checker → · Palette generator →

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