#7954EC#7954EC

#7954EC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.0% C 0.217 H 288.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7954EC
RGBrgb(121, 84, 236)
HSLhsl(255, 80%, 63%)
HSVhsv(255, 64%, 93%)
CMYKcmyk(48.7%, 64.4%, 0%, 7.5%)
CIE-LABlab(47.57, 51.35, -71.71)
CIE-LCHlch(47.57, 88.20, 305.60°)
OKLaboklab(57.01% 0.0699 -0.2055)
OKLCHoklch(57.01% 0.217 288.8)
XYZxyz(26.1914, 16.4606, 81.1378)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954EC #C7EC54
analogous
#547BEC #7954EC #C554EC
triadic
#7954EC #EC7954 #54EC79
tetradic
#7954EC #EC547B #C7EC54 #54ECC5
square
#7954EC #EC547B #C7EC54 #54ECC5
split-complementary
#7954EC #ECC554 #7BEC54
monochromatic
#3A14B2 #4E1DE6 #7954EC #A48BF2 #CFC2F8

Accessibility & contrast

On white

4.89
#7954EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7954EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954EC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954EC#FFFFFF#000000##FFFFFF
##7954EC1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#517999
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7954ec;
/* rgb */ color: rgb(121, 84, 236);
/* oklch */ color: oklch(57.0% 0.217 288.8);
Tailwind
colors: {
  custom: {
    50: '#a886f3',
    500: '#7954ec',
    950: '#000000',
  },
}
SCSS
$custom: #7954ec;
$custom-light: #a886f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7954ec",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 254.605,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5701,
    "c": 0.21708,
    "h": 288.8
  },
  "luminance": 0.16462
}

Semantic roles & 50–950 ramp

primary
#7954EC
secondary
#DCE9B2
accent
#DC09A9
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7954EC

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

Preview Lab → · Contrast checker → · Palette generator →

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