#7954BF#7954BF

#7954BF is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.8% C 0.162 H 296.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7954BF
RGBrgb(121, 84, 191)
HSLhsl(261, 46%, 54%)
HSVhsv(261, 56%, 75%)
CMYKcmyk(36.6%, 56%, 0%, 25.1%)
CIE-LABlab(44.47, 38.99, -51.00)
CIE-LCHlch(44.47, 64.20, 307.40°)
OKLaboklab(53.76% 0.0722 -0.1446)
OKLCHoklch(53.76% 0.162 296.5)
XYZxyz(20.4571, 14.1669, 50.9368)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954BF #9ABF54
analogous
#5465BF #7954BF #AF54BF
triadic
#7954BF #BF7954 #54BF79
tetradic
#7954BF #BF5465 #9ABF54 #54BFAF
square
#7954BF #BF5465 #9ABF54 #54BFAF
split-complementary
#7954BF #BFAF54 #65BF54
monochromatic
#422A6F #5C3A9C #7954BF #9C81D0 #BFADE0

Accessibility & contrast

On white

5.48
#7954BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7954BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954BF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954BF#FFFFFF#000000##FFFFFF
##7954BF1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226AC3
Deuteranopia (green-blind)
#2E68BD
Tritanopia (blue-blind)
#696A81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7954bf;
/* rgb */ color: rgb(121, 84, 191);
/* oklch */ color: oklch(53.8% 0.162 296.5);
Tailwind
colors: {
  custom: {
    50: '#a485d3',
    500: '#7954bf',
    950: '#000000',
  },
}
SCSS
$custom: #7954bf;
$custom-light: #a485d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7954bf",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 260.748,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53765,
    "c": 0.16163,
    "h": 296.5
  },
  "luminance": 0.14167
}

Semantic roles & 50–950 ramp

primary
#7954BF
secondary
#BECEA1
accent
#D553A8
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7954BF

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

Preview Lab → · Contrast checker → · Palette generator →

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