#7956BF#7956BF

#7956BF is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.1% C 0.159 H 296.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7956BF
RGBrgb(121, 86, 191)
HSLhsl(260, 45%, 54%)
HSVhsv(260, 55%, 75%)
CMYKcmyk(36.6%, 55%, 0%, 25.1%)
CIE-LABlab(44.92, 37.84, -50.28)
CIE-LCHlch(44.92, 62.93, 306.96°)
OKLaboklab(54.09% 0.0697 -0.1425)
OKLCHoklch(54.09% 0.159 296)
XYZxyz(20.6145, 14.4818, 50.9893)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956BF #9CBF56
analogous
#5668BF #7956BF #AE56BF
triadic
#7956BF #BF7956 #56BF79
tetradic
#7956BF #BF5668 #9CBF56 #56BFAE
square
#7956BF #BF5668 #9CBF56 #56BFAE
split-complementary
#7956BF #BFAE56 #68BF56
monochromatic
#422A70 #5C3B9D #7956BF #9C82D0 #BFAFE1

Accessibility & contrast

On white

5.39
#7956BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7956BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956BF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956BF#FFFFFF#000000##FFFFFF
##7956BF1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276BC3
Deuteranopia (green-blind)
#3269BD
Tritanopia (blue-blind)
#686C82
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7956bf;
/* rgb */ color: rgb(121, 86, 191);
/* oklch */ color: oklch(54.1% 0.159 296.0);
Tailwind
colors: {
  custom: {
    50: '#a487d3',
    500: '#7956bf',
    950: '#000000',
  },
}
SCSS
$custom: #7956bf;
$custom-light: #a487d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7956bf",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 260,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54093,
    "c": 0.15863,
    "h": 296
  },
  "luminance": 0.14482
}

Semantic roles & 50–950 ramp

primary
#7956BF
secondary
#C0CFA2
accent
#D553AA
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7956BF

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

Preview Lab → · Contrast checker → · Palette generator →

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