#7954DF#7954DF

#7954DF is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.0% C 0.201 H 290.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7954DF
RGBrgb(121, 84, 223)
HSLhsl(256, 68%, 60%)
HSVhsv(256, 62%, 87%)
CMYKcmyk(45.7%, 62.3%, 0%, 12.5%)
CIE-LABlab(46.62, 47.73, -65.91)
CIE-LCHlch(46.62, 81.38, 305.91°)
OKLaboklab(56.02% 0.0711 -0.1885)
OKLCHoklch(56.02% 0.201 290.7)
XYZxyz(24.3710, 15.7324, 71.5503)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954DF #BADF54
analogous
#5475DF #7954DF #BE54DF
triadic
#7954DF #DF7954 #54DF79
tetradic
#7954DF #DF5475 #BADF54 #54DFBE
square
#7954DF #DF5475 #BADF54 #54DFBE
split-complementary
#7954DF #DFBE54 #75DF54
monochromatic
#3F1D9C #5427CF #7954DF #A188E9 #CABBF2

Accessibility & contrast

On white

5.06
#7954DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7954DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954DF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954DF#FFFFFF#000000##FFFFFF
##7954DF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E3
Deuteranopia (green-blind)
#006BDC
Tritanopia (blue-blind)
#5A7592
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7954df;
/* rgb */ color: rgb(121, 84, 223);
/* oklch */ color: oklch(56.0% 0.201 290.7);
Tailwind
colors: {
  custom: {
    50: '#a786ea',
    500: '#7954df',
    950: '#000000',
  },
}
SCSS
$custom: #7954df;
$custom-light: #a786ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7954df",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 255.971,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56021,
    "c": 0.20144,
    "h": 290.7
  },
  "luminance": 0.15733
}

Semantic roles & 50–950 ramp

primary
#7954DF
secondary
#D4E2AD
accent
#D0159F
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7954DF

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

Preview Lab → · Contrast checker → · Palette generator →

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