#7956CD#7956CD

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

Color values

HEX#7956CD
RGBrgb(121, 86, 205)
HSLhsl(258, 54%, 57%)
HSVhsv(258, 58%, 80%)
CMYKcmyk(41%, 58%, 0%, 19.6%)
CIE-LABlab(45.81, 41.64, -56.94)
CIE-LCHlch(45.81, 70.54, 306.18°)
OKLaboklab(55.04% 0.0698 -0.1621)
OKLCHoklch(55.04% 0.176 293.3)
XYZxyz(22.2294, 15.1277, 59.4945)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956CD #AACD56
analogous
#566FCD #7956CD #B556CD
triadic
#7956CD #CD7956 #56CD79
tetradic
#7956CD #CD566F #AACD56 #56CDB5
square
#7956CD #CD566F #AACD56 #56CDB5
split-complementary
#7956CD #CDB556 #6FCD56
monochromatic
#412682 #5934B1 #7956CD #9E85DB #C4B4E9

Accessibility & contrast

On white

5.22
#7956CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7956CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956CD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956CD#FFFFFF#000000##FFFFFF
##7956CD1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076ED1
Deuteranopia (green-blind)
#1B6ACA
Tritanopia (blue-blind)
#637089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7956cd;
/* rgb */ color: rgb(121, 86, 205);
/* oklch */ color: oklch(55.0% 0.176 293.3);
Tailwind
colors: {
  custom: {
    50: '#a587dd',
    500: '#7956cd',
    950: '#000000',
  },
}
SCSS
$custom: #7956cd;
$custom-light: #a587dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7956cd",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 257.647,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55036,
    "c": 0.17646,
    "h": 293.3
  },
  "luminance": 0.15128
}

Semantic roles & 50–950 ramp

primary
#7956CD
secondary
#C9D8A7
accent
#DE4AB2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7956CD

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

Preview Lab → · Contrast checker → · Palette generator →

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