#7954E7#7954E7

#7954E7 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.6% C 0.211 H 289.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7954E7
RGBrgb(121, 84, 231)
HSLhsl(255, 75%, 62%)
HSVhsv(255, 64%, 91%)
CMYKcmyk(47.6%, 63.6%, 0%, 9.4%)
CIE-LABlab(47.20, 49.95, -69.50)
CIE-LCHlch(47.20, 85.59, 305.71°)
OKLaboklab(56.63% 0.0704 -0.199)
OKLCHoklch(56.63% 0.211 289.5)
XYZxyz(25.4752, 16.1741, 77.3654)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954E7 #C2E754
analogous
#5479E7 #7954E7 #C354E7
triadic
#7954E7 #E77954 #54E779
tetradic
#7954E7 #E75479 #C2E754 #54E7C3
square
#7954E7 #E75479 #C2E754 #54E7C3
split-complementary
#7954E7 #E7C354 #79E754
monochromatic
#3C18A9 #4F1FDF #7954E7 #A38AEF #CDBFF6

Accessibility & contrast

On white

4.96
#7954E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7954E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954E7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954E7#FFFFFF#000000##FFFFFF
##7954E71.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#006CE4
Tritanopia (blue-blind)
#557796
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7954e7;
/* rgb */ color: rgb(121, 84, 231);
/* oklch */ color: oklch(56.6% 0.211 289.5);
Tailwind
colors: {
  custom: {
    50: '#a886f0',
    500: '#7954e7',
    950: '#000000',
  },
}
SCSS
$custom: #7954e7;
$custom-light: #a886f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7954e7",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 255.102,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56625,
    "c": 0.2111,
    "h": 289.5
  },
  "luminance": 0.16175
}

Semantic roles & 50–950 ramp

primary
#7954E7
secondary
#D9E7B0
accent
#D80EA5
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7954E7

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

Preview Lab → · Contrast checker → · Palette generator →

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