#7956CF#7956CF

#7956CF is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.179 H 292.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7956CF
RGBrgb(121, 86, 207)
HSLhsl(257, 56%, 57%)
HSVhsv(257, 58%, 81%)
CMYKcmyk(41.5%, 58.5%, 0%, 18.8%)
CIE-LABlab(45.94, 42.19, -57.88)
CIE-LCHlch(45.94, 71.62, 306.09°)
OKLaboklab(55.18% 0.0697 -0.1648)
OKLCHoklch(55.18% 0.179 292.9)
XYZxyz(22.4724, 15.2249, 60.7741)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956CF #ACCF56
analogous
#5670CF #7956CF #B556CF
triadic
#7956CF #CF7956 #56CF79
tetradic
#7956CF #CF5670 #ACCF56 #56CFB5
square
#7956CF #CF5670 #ACCF56 #56CFB5
split-complementary
#7956CF #CFB556 #70CF56
monochromatic
#412685 #5933B5 #7956CF #9F86DD #C5B5EA

Accessibility & contrast

On white

5.19
#7956CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7956CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956CF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956CF#FFFFFF#000000##FFFFFF
##7956CF1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#166BCC
Tritanopia (blue-blind)
#62718A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7956cf;
/* rgb */ color: rgb(121, 86, 207);
/* oklch */ color: oklch(55.2% 0.179 292.9);
Tailwind
colors: {
  custom: {
    50: '#a587de',
    500: '#7956cf',
    950: '#000000',
  },
}
SCSS
$custom: #7956cf;
$custom-light: #a587de;
$custom-dark: #000000;
JSON
{
  "hex": "#7956cf",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 257.355,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55175,
    "c": 0.17898,
    "h": 292.9
  },
  "luminance": 0.15226
}

Semantic roles & 50–950 ramp

primary
#7956CF
secondary
#CBD9A8
accent
#DF49B4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7956CF

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

Preview Lab → · Contrast checker → · Palette generator →

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