#7956C8#7956C8

#7956C8 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.7% C 0.170 H 294.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7956C8
RGBrgb(121, 86, 200)
HSLhsl(258, 51%, 56%)
HSVhsv(258, 57%, 78%)
CMYKcmyk(39.5%, 57%, 0%, 21.6%)
CIE-LABlab(45.48, 40.28, -54.58)
CIE-LCHlch(45.48, 67.83, 306.42°)
OKLaboklab(54.69% 0.0698 -0.1551)
OKLCHoklch(54.69% 0.17 294.2)
XYZxyz(21.6355, 14.8902, 56.3666)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956C8 #A5C856
analogous
#566CC8 #7956C8 #B256C8
triadic
#7956C8 #C87956 #56C879
tetradic
#7956C8 #C8566C #A5C856 #56C8B2
square
#7956C8 #C8566C #A5C856 #56C8B2
split-complementary
#7956C8 #C8B256 #6CC856
monochromatic
#42287B #5A37AA #7956C8 #9E84D7 #C2B2E6

Accessibility & contrast

On white

5.28
#7956C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7956C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956C8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956C8#FFFFFF#000000##FFFFFF
##7956C81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176DCC
Deuteranopia (green-blind)
#256AC5
Tritanopia (blue-blind)
#656E87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7956c8;
/* rgb */ color: rgb(121, 86, 200);
/* oklch */ color: oklch(54.7% 0.170 294.2);
Tailwind
colors: {
  custom: {
    50: '#a487d9',
    500: '#7956c8',
    950: '#000000',
  },
}
SCSS
$custom: #7956c8;
$custom-light: #a487d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7956c8",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 258.421,
    "s": 50.893,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54693,
    "c": 0.17013,
    "h": 294.2
  },
  "luminance": 0.14891
}

Semantic roles & 50–950 ramp

primary
#7956C8
secondary
#C6D4A5
accent
#DA4DAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7956C8

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

Preview Lab → · Contrast checker → · Palette generator →

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