#7951DC#7951DC

#7951DC is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.4% C 0.202 H 291.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7951DC
RGBrgb(121, 81, 220)
HSLhsl(257, 67%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(45%, 63.2%, 0%, 13.7%)
CIE-LABlab(45.79, 48.54, -65.55)
CIE-LCHlch(45.79, 81.57, 306.52°)
OKLaboklab(55.35% 0.0745 -0.1874)
OKLCHoklch(55.35% 0.202 291.7)
XYZxyz(23.7423, 15.1163, 69.3631)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951DC #B4DC51
analogous
#516FDC #7951DC #BF51DC
triadic
#7951DC #DC7951 #51DC79
tetradic
#7951DC #DC516F #B4DC51 #51DCBF
square
#7951DC #DC516F #B4DC51 #51DCBF
split-complementary
#7951DC #DCBF51 #6FDC51
monochromatic
#401E95 #5628C8 #7951DC #A084E6 #C7B7F0

Accessibility & contrast

On white

5.22
#7951DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7951DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951DC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951DC#FFFFFF#000000##FFFFFF
##7951DC1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#5B728F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7951dc;
/* rgb */ color: rgb(121, 81, 220);
/* oklch */ color: oklch(55.4% 0.202 291.7);
Tailwind
colors: {
  custom: {
    50: '#a784e8',
    500: '#7951dc',
    950: '#000000',
  },
}
SCSS
$custom: #7951dc;
$custom-light: #a784e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7951dc",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 257.266,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55352,
    "c": 0.20168,
    "h": 291.7
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#7951DC
secondary
#D0E0A9
accent
#E93EB8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7951DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7951DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva