#7956BE#7956BE

#7956BE is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.0% C 0.157 H 296.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7956BE
RGBrgb(121, 86, 190)
HSLhsl(260, 44%, 54%)
HSVhsv(260, 55%, 75%)
CMYKcmyk(36.3%, 54.7%, 0%, 25.5%)
CIE-LABlab(44.85, 37.57, -49.80)
CIE-LCHlch(44.85, 62.38, 307.03°)
OKLaboklab(54.03% 0.0696 -0.1411)
OKLCHoklch(54.03% 0.157 296.3)
XYZxyz(20.5048, 14.4379, 50.4117)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956BE #9BBE56
analogous
#5667BE #7956BE #AD56BE
triadic
#7956BE #BE7956 #56BE79
tetradic
#7956BE #BE5667 #9BBE56 #56BEAD
square
#7956BE #BE5667 #9BBE56 #56BEAD
split-complementary
#7956BE #BEAD56 #67BE56
monochromatic
#422B6F #5C3C9B #7956BE #9C82CF #BFAEE0

Accessibility & contrast

On white

5.40
#7956BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7956BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956BE
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956BE#FFFFFF#000000##FFFFFF
##7956BE1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC2
Deuteranopia (green-blind)
#3369BC
Tritanopia (blue-blind)
#696B82
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7956be;
/* rgb */ color: rgb(121, 86, 190);
/* oklch */ color: oklch(54.0% 0.157 296.3);
Tailwind
colors: {
  custom: {
    50: '#a387d2',
    500: '#7956be',
    950: '#000000',
  },
}
SCSS
$custom: #7956be;
$custom-light: #a387d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7956be",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 260.192,
    "s": 44.444,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54027,
    "c": 0.15735,
    "h": 296.3
  },
  "luminance": 0.14438
}

Semantic roles & 50–950 ramp

primary
#7956BE
secondary
#BFCEA2
accent
#D454A9
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7956BE

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

Preview Lab → · Contrast checker → · Palette generator →

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