#7954DB#7954DB

#7954DB is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.197 H 291.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7954DB
RGBrgb(121, 84, 219)
HSLhsl(256, 65%, 59%)
HSVhsv(256, 62%, 86%)
CMYKcmyk(44.7%, 61.6%, 0%, 14.1%)
CIE-LABlab(46.34, 46.62, -64.10)
CIE-LCHlch(46.34, 79.26, 306.03°)
OKLaboklab(55.73% 0.0714 -0.1831)
OKLCHoklch(55.73% 0.197 291.3)
XYZxyz(23.8381, 15.5193, 68.7436)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954DB #B6DB54
analogous
#5473DB #7954DB #BC54DB
triadic
#7954DB #DB7954 #54DB79
tetradic
#7954DB #DB5473 #B6DB54 #54DBBC
square
#7954DB #DB5473 #B6DB54 #54DBBC
split-complementary
#7954DB #DBBC54 #73DB54
monochromatic
#401F95 #552AC8 #7954DB #A187E6 #C8B9F0

Accessibility & contrast

On white

5.12
#7954DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7954DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954DB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954DB#FFFFFF#000000##FFFFFF
##7954DB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#5C7390
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7954db;
/* rgb */ color: rgb(121, 84, 219);
/* oklch */ color: oklch(55.7% 0.197 291.3);
Tailwind
colors: {
  custom: {
    50: '#a686e7',
    500: '#7954db',
    950: '#000000',
  },
}
SCSS
$custom: #7954db;
$custom-light: #a686e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7954db",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 256.444,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55725,
    "c": 0.19657,
    "h": 291.3
  },
  "luminance": 0.1552
}

Semantic roles & 50–950 ramp

primary
#7954DB
secondary
#D1E0AB
accent
#E840BA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7954DB

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

Preview Lab → · Contrast checker → · Palette generator →

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