#7954BC#7954BC

#7954BC is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.158 H 297.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7954BC
RGBrgb(121, 84, 188)
HSLhsl(261, 44%, 53%)
HSVhsv(261, 55%, 74%)
CMYKcmyk(35.6%, 55.3%, 0%, 26.3%)
CIE-LABlab(44.28, 38.19, -49.55)
CIE-LCHlch(44.28, 62.56, 307.62°)
OKLaboklab(53.57% 0.0721 -0.1404)
OKLCHoklch(53.57% 0.158 297.2)
XYZxyz(20.1303, 14.0361, 49.2159)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954BC #97BC54
analogous
#5463BC #7954BC #AD54BC
triadic
#7954BC #BC7954 #54BC79
tetradic
#7954BC #BC5463 #97BC54 #54BCAD
square
#7954BC #BC5463 #97BC54 #54BCAD
split-complementary
#7954BC #BCAD54 #63BC54
monochromatic
#412A6B #5C3B97 #7954BC #9B80CD #BEACDE

Accessibility & contrast

On white

5.52
#7954BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7954BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954BC
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954BC#FFFFFF#000000##FFFFFF
##7954BC1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2669BF
Deuteranopia (green-blind)
#3267BA
Tritanopia (blue-blind)
#6A6980
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7954bc;
/* rgb */ color: rgb(121, 84, 188);
/* oklch */ color: oklch(53.6% 0.158 297.2);
Tailwind
colors: {
  custom: {
    50: '#a385d1',
    500: '#7954bc',
    950: '#000000',
  },
}
SCSS
$custom: #7954bc;
$custom-light: #a385d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7954bc",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 261.346,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53567,
    "c": 0.15781,
    "h": 297.2
  },
  "luminance": 0.14036
}

Semantic roles & 50–950 ramp

primary
#7954BC
secondary
#BCCCA0
accent
#D354A6
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7954BC

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

Preview Lab → · Contrast checker → · Palette generator →

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