#7956DC#7956DC

#7956DC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.1% C 0.195 H 290.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7956DC
RGBrgb(121, 86, 220)
HSLhsl(256, 66%, 60%)
HSVhsv(256, 61%, 86%)
CMYKcmyk(45%, 60.9%, 0%, 13.7%)
CIE-LABlab(46.83, 45.79, -63.87)
CIE-LCHlch(46.83, 78.59, 305.63°)
OKLaboklab(56.1% 0.0692 -0.1825)
OKLCHoklch(56.1% 0.195 290.8)
XYZxyz(24.1276, 15.8870, 69.4915)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956DC #B9DC56
analogous
#5676DC #7956DC #BC56DC
triadic
#7956DC #DC7956 #56DC79
tetradic
#7956DC #DC5676 #B9DC56 #56DCBC
square
#7956DC #DC5676 #B9DC56 #56DCBC
split-complementary
#7956DC #DCBC56 #76DC56
monochromatic
#3F2098 #542ACB #7956DC #A189E6 #C9BBF1

Accessibility & contrast

On white

5.03
#7956DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7956DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956DC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956DC#FFFFFF#000000##FFFFFF
##7956DC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#5B7591
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7956dc;
/* rgb */ color: rgb(121, 86, 220);
/* oklch */ color: oklch(56.1% 0.195 290.8);
Tailwind
colors: {
  custom: {
    50: '#a687e8',
    500: '#7956dc',
    950: '#000000',
  },
}
SCSS
$custom: #7956dc;
$custom-light: #a687e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7956dc",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 255.672,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.56103,
    "c": 0.19515,
    "h": 290.8
  },
  "luminance": 0.15888
}

Semantic roles & 50–950 ramp

primary
#7956DC
secondary
#D3E1AD
accent
#E93FBC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7956DC

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

Preview Lab → · Contrast checker → · Palette generator →

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