#7954CF#7954CF

#7954CF is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.182 H 293.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7954CF
RGBrgb(121, 84, 207)
HSLhsl(258, 56%, 57%)
HSVhsv(258, 59%, 81%)
CMYKcmyk(41.5%, 59.4%, 0%, 18.8%)
CIE-LABlab(45.51, 43.32, -58.57)
CIE-LCHlch(45.51, 72.85, 306.49°)
OKLaboklab(54.86% 0.0721 -0.1669)
OKLCHoklch(54.86% 0.182 293.4)
XYZxyz(22.3149, 14.9100, 60.7216)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954CF #AACF54
analogous
#546DCF #7954CF #B754CF
triadic
#7954CF #CF7954 #54CF79
tetradic
#7954CF #CF546D #AACF54 #54CFB7
square
#7954CF #CF546D #AACF54 #54CFB7
split-complementary
#7954CF #CFB754 #6DCF54
monochromatic
#412584 #5932B3 #7954CF #9E84DC #C4B4EA

Accessibility & contrast

On white

5.27
#7954CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7954CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954CF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954CF#FFFFFF#000000##FFFFFF
##7954CF1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#0E6ACC
Tritanopia (blue-blind)
#626F89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7954cf;
/* rgb */ color: rgb(121, 84, 207);
/* oklch */ color: oklch(54.9% 0.182 293.4);
Tailwind
colors: {
  custom: {
    50: '#a586de',
    500: '#7954cf',
    950: '#000000',
  },
}
SCSS
$custom: #7954cf;
$custom-light: #a586de;
$custom-dark: #000000;
JSON
{
  "hex": "#7954cf",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 258.049,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5486,
    "c": 0.18176,
    "h": 293.4
  },
  "luminance": 0.14911
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7954CF

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

Preview Lab → · Contrast checker → · Palette generator →

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