#7954E1#7954E1

#7954E1 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.2% C 0.204 H 290.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7954E1
RGBrgb(121, 84, 225)
HSLhsl(256, 70%, 61%)
HSVhsv(256, 63%, 88%)
CMYKcmyk(46.2%, 62.7%, 0%, 11.8%)
CIE-LABlab(46.77, 48.28, -66.81)
CIE-LCHlch(46.77, 82.43, 305.86°)
OKLaboklab(56.17% 0.071 -0.1911)
OKLCHoklch(56.17% 0.204 290.4)
XYZxyz(24.6422, 15.8409, 72.9788)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954E1 #BCE154
analogous
#5475E1 #7954E1 #C054E1
triadic
#7954E1 #E17954 #54E179
tetradic
#7954E1 #E15475 #BCE154 #54E1C0
square
#7954E1 #E15475 #BCE154 #54E1C0
split-complementary
#7954E1 #E1C054 #75E154
monochromatic
#3E1C9F #5325D3 #7954E1 #A288EA #CBBCF3

Accessibility & contrast

On white

5.04
#7954E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7954E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954E1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954E1#FFFFFF#000000##FFFFFF
##7954E11.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E5
Deuteranopia (green-blind)
#006CDE
Tritanopia (blue-blind)
#587593
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7954e1;
/* rgb */ color: rgb(121, 84, 225);
/* oklch */ color: oklch(56.2% 0.204 290.4);
Tailwind
colors: {
  custom: {
    50: '#a786eb',
    500: '#7954e1',
    950: '#000000',
  },
}
SCSS
$custom: #7954e1;
$custom-light: #a786eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7954e1",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 255.745,
    "s": 70.149,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56171,
    "c": 0.20386,
    "h": 290.4
  },
  "luminance": 0.15842
}

Semantic roles & 50–950 ramp

primary
#7954E1
secondary
#D5E3AE
accent
#D213A0
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7954E1

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

Preview Lab → · Contrast checker → · Palette generator →

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