#7954BA#7954BA

#7954BA is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.4% C 0.155 H 297.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7954BA
RGBrgb(121, 84, 186)
HSLhsl(262, 43%, 53%)
HSVhsv(262, 55%, 73%)
CMYKcmyk(34.9%, 54.8%, 0%, 27.1%)
CIE-LABlab(44.16, 37.66, -48.58)
CIE-LCHlch(44.16, 61.47, 307.78°)
OKLaboklab(53.44% 0.072 -0.1375)
OKLCHoklch(53.44% 0.155 297.6)
XYZxyz(19.9162, 13.9505, 48.0883)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954BA #95BA54
analogous
#5462BA #7954BA #AC54BA
triadic
#7954BA #BA7954 #54BA79
tetradic
#7954BA #BA5462 #95BA54 #54BAAC
square
#7954BA #BA5462 #95BA54 #54BAAC
split-complementary
#7954BA #BAAC54 #62BA54
monochromatic
#412A69 #5C3C95 #7954BA #9B80CC #BDABDD

Accessibility & contrast

On white

5.54
#7954BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7954BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954BA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954BA#FFFFFF#000000##FFFFFF
##7954BA1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BD
Deuteranopia (green-blind)
#3467B8
Tritanopia (blue-blind)
#6A697F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7954ba;
/* rgb */ color: rgb(121, 84, 186);
/* oklch */ color: oklch(53.4% 0.155 297.6);
Tailwind
colors: {
  custom: {
    50: '#a385cf',
    500: '#7954ba',
    950: '#000000',
  },
}
SCSS
$custom: #7954ba;
$custom-light: #a385cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7954ba",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 261.765,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53437,
    "c": 0.15525,
    "h": 297.6
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

primary
#7954BA
secondary
#BBCB9F
accent
#D256A5
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7954BA

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

Preview Lab → · Contrast checker → · Palette generator →

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