#7954EF#7954EF

#7954EF is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.2% C 0.221 H 288.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7954EF
RGBrgb(121, 84, 239)
HSLhsl(254, 83%, 63%)
HSVhsv(254, 65%, 94%)
CMYKcmyk(49.4%, 64.9%, 0%, 6.3%)
CIE-LABlab(47.80, 52.19, -73.03)
CIE-LCHlch(47.80, 89.76, 305.55°)
OKLaboklab(57.24% 0.0695 -0.2094)
OKLCHoklch(57.24% 0.221 288.4)
XYZxyz(26.6309, 16.6364, 83.4526)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954EF #CAEF54
analogous
#547CEF #7954EF #C754EF
triadic
#7954EF #EF7954 #54EF79
tetradic
#7954EF #EF547C #CAEF54 #54EFC7
square
#7954EF #EF547C #CAEF54 #54EFC7
split-complementary
#7954EF #EFC754 #7CEF54
monochromatic
#3911B7 #4D1CEA #7954EF #A58CF4 #D1C4F9

Accessibility & contrast

On white

4.85
#7954EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7954EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954EF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954EF#FFFFFF#000000##FFFFFF
##7954EF1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F4
Deuteranopia (green-blind)
#006DEC
Tritanopia (blue-blind)
#4F7A9A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7954ef;
/* rgb */ color: rgb(121, 84, 239);
/* oklch */ color: oklch(57.2% 0.221 288.4);
Tailwind
colors: {
  custom: {
    50: '#a986f5',
    500: '#7954ef',
    950: '#000000',
  },
}
SCSS
$custom: #7954ef;
$custom-light: #a986f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7954ef",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 254.323,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57243,
    "c": 0.22064,
    "h": 288.4
  },
  "luminance": 0.16638
}

Semantic roles & 50–950 ramp

primary
#7954EF
secondary
#DEEBB4
accent
#DF06AB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7954EF

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

Preview Lab → · Contrast checker → · Palette generator →

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