#7956CC#7956CC

#7956CC is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.0% C 0.175 H 293.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7956CC
RGBrgb(121, 86, 204)
HSLhsl(258, 54%, 57%)
HSVhsv(258, 58%, 80%)
CMYKcmyk(40.7%, 57.8%, 0%, 20%)
CIE-LABlab(45.74, 41.37, -56.47)
CIE-LCHlch(45.74, 70.00, 306.22°)
OKLaboklab(54.97% 0.0698 -0.1607)
OKLCHoklch(54.97% 0.175 293.5)
XYZxyz(22.1091, 15.0796, 58.8608)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956CC #A9CC56
analogous
#566ECC #7956CC #B456CC
triadic
#7956CC #CC7956 #56CC79
tetradic
#7956CC #CC566E #A9CC56 #56CCB4
square
#7956CC #CC566E #A9CC56 #56CCB4
split-complementary
#7956CC #CCB456 #6ECC56
monochromatic
#422781 #5935B0 #7956CC #9E85DA #C4B4E8

Accessibility & contrast

On white

5.23
#7956CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7956CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956CC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956CC#FFFFFF#000000##FFFFFF
##7956CC1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6ED0
Deuteranopia (green-blind)
#1E6AC9
Tritanopia (blue-blind)
#637089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7956cc;
/* rgb */ color: rgb(121, 86, 204);
/* oklch */ color: oklch(55.0% 0.175 293.5);
Tailwind
colors: {
  custom: {
    50: '#a587dc',
    500: '#7956cc',
    950: '#000000',
  },
}
SCSS
$custom: #7956cc;
$custom-light: #a587dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7956cc",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 257.797,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54967,
    "c": 0.1752,
    "h": 293.5
  },
  "luminance": 0.1508
}

Semantic roles & 50–950 ramp

primary
#7956CC
secondary
#C9D7A7
accent
#DD4BB2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7956CC

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

Preview Lab → · Contrast checker → · Palette generator →

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