#7956CE#7956CE

#7956CE is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.1% C 0.178 H 293.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7956CE
RGBrgb(121, 86, 206)
HSLhsl(258, 55%, 57%)
HSVhsv(258, 58%, 81%)
CMYKcmyk(41.3%, 58.3%, 0%, 19.2%)
CIE-LABlab(45.87, 41.92, -57.41)
CIE-LCHlch(45.87, 71.08, 306.13°)
OKLaboklab(55.11% 0.0698 -0.1635)
OKLCHoklch(55.11% 0.178 293.1)
XYZxyz(22.3505, 15.1762, 60.1322)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956CE #ABCE56
analogous
#566FCE #7956CE #B556CE
triadic
#7956CE #CE7956 #56CE79
tetradic
#7956CE #CE566F #ABCE56 #56CEB5
square
#7956CE #CE566F #ABCE56 #56CEB5
split-complementary
#7956CE #CEB556 #6FCE56
monochromatic
#412683 #5934B3 #7956CE #9F85DC #C4B5EA

Accessibility & contrast

On white

5.20
#7956CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7956CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956CE
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956CE#FFFFFF#000000##FFFFFF
##7956CE1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026ED2
Deuteranopia (green-blind)
#196ACB
Tritanopia (blue-blind)
#62708A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7956ce;
/* rgb */ color: rgb(121, 86, 206);
/* oklch */ color: oklch(55.1% 0.178 293.1);
Tailwind
colors: {
  custom: {
    50: '#a587de',
    500: '#7956ce',
    950: '#000000',
  },
}
SCSS
$custom: #7956ce;
$custom-light: #a587de;
$custom-dark: #000000;
JSON
{
  "hex": "#7956ce",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 257.5,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55105,
    "c": 0.17771,
    "h": 293.1
  },
  "luminance": 0.15177
}

Semantic roles & 50–950 ramp

primary
#7956CE
secondary
#CAD8A8
accent
#DE49B3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7956CE

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

Preview Lab → · Contrast checker → · Palette generator →

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