#7956B2#7956B2

#7956B2 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.3% C 0.142 H 299.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7956B2
RGBrgb(121, 86, 178)
HSLhsl(263, 37%, 52%)
HSVhsv(263, 52%, 70%)
CMYKcmyk(32%, 51.7%, 0%, 30.2%)
CIE-LABlab(44.14, 34.39, -43.94)
CIE-LCHlch(44.14, 55.80, 308.05°)
OKLaboklab(53.27% 0.0689 -0.1239)
OKLCHoklch(53.27% 0.142 299.1)
XYZxyz(19.2469, 13.9347, 43.7865)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956B2 #8FB256
analogous
#5661B2 #7956B2 #A756B2
triadic
#7956B2 #B27956 #56B279
tetradic
#7956B2 #B25661 #8FB256 #56B2A7
square
#7956B2 #B25661 #8FB256 #56B2A7
split-complementary
#7956B2 #B2A756 #61B256
monochromatic
#402C61 #5C3F8B #7956B2 #9A80C5 #BCAAD8

Accessibility & contrast

On white

5.55
#7956B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7956B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956B2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956B2#FFFFFF#000000##FFFFFF
##7956B21.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#3E68B0
Tritanopia (blue-blind)
#6D687C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7956b2;
/* rgb */ color: rgb(121, 86, 178);
/* oklch */ color: oklch(53.3% 0.142 299.1);
Tailwind
colors: {
  custom: {
    50: '#a386c9',
    500: '#7956b2',
    950: '#000000',
  },
}
SCSS
$custom: #7956b2;
$custom-light: #a386c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7956b2",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 262.826,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53266,
    "c": 0.1418,
    "h": 299.1
  },
  "luminance": 0.13935
}

Semantic roles & 50–950 ramp

primary
#7956B2
secondary
#B7C69E
accent
#CD5AA2
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #7956B2

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

Preview Lab → · Contrast checker → · Palette generator →

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