#7954CE#7954CE

#7954CE is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.181 H 293.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7954CE
RGBrgb(121, 84, 206)
HSLhsl(258, 55%, 57%)
HSVhsv(258, 59%, 81%)
CMYKcmyk(41.3%, 59.2%, 0%, 19.2%)
CIE-LABlab(45.44, 43.05, -58.10)
CIE-LCHlch(45.44, 72.31, 306.53°)
OKLaboklab(54.79% 0.0721 -0.1655)
OKLCHoklch(54.79% 0.181 293.5)
XYZxyz(22.1931, 14.8613, 60.0798)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954CE #A9CE54
analogous
#546CCE #7954CE #B654CE
triadic
#7954CE #CE7954 #54CE79
tetradic
#7954CE #CE546C #A9CE54 #54CEB6
square
#7954CE #CE546C #A9CE54 #54CEB6
split-complementary
#7954CE #CEB654 #6CCE54
monochromatic
#422582 #5933B2 #7954CE #9E84DC #C4B3E9

Accessibility & contrast

On white

5.29
#7954CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7954CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954CE
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954CE#FFFFFF#000000##FFFFFF
##7954CE1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD2
Deuteranopia (green-blind)
#1269CB
Tritanopia (blue-blind)
#626F89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7954ce;
/* rgb */ color: rgb(121, 84, 206);
/* oklch */ color: oklch(54.8% 0.181 293.5);
Tailwind
colors: {
  custom: {
    50: '#a586de',
    500: '#7954ce',
    950: '#000000',
  },
}
SCSS
$custom: #7954ce;
$custom-light: #a586de;
$custom-dark: #000000;
JSON
{
  "hex": "#7954ce",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 258.197,
    "s": 55.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54789,
    "c": 0.18052,
    "h": 293.5
  },
  "luminance": 0.14862
}

Semantic roles & 50–950 ramp

primary
#7954CE
secondary
#C9D8A6
accent
#DF49B1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7954CE

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

Preview Lab → · Contrast checker → · Palette generator →

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