#7956F2#7956F2

#7956F2 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.222 H 287.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7956F2
RGBrgb(121, 86, 242)
HSLhsl(253, 86%, 64%)
HSVhsv(253, 64%, 95%)
CMYKcmyk(50%, 64.5%, 0%, 5.1%)
CIE-LABlab(48.42, 51.95, -73.70)
CIE-LCHlch(48.42, 90.17, 305.18°)
OKLaboklab(57.77% 0.0673 -0.2113)
OKLCHoklch(57.77% 0.222 287.7)
XYZxyz(27.2353, 17.1301, 85.8586)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956F2 #CFF256
analogous
#5681F2 #7956F2 #C756F2
triadic
#7956F2 #F27956 #56F279
tetradic
#7956F2 #F25681 #CFF256 #56F2C7
square
#7956F2 #F25681 #CFF256 #56F2C7
split-complementary
#7956F2 #F2C756 #81F256
monochromatic
#360FBF #4C1DEE #7956F2 #A68FF6 #D3C8FB

Accessibility & contrast

On white

4.74
#7956F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7956F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956F2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956F2#FFFFFF#000000##FFFFFF
##7956F21.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#4D7C9D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7956f2;
/* rgb */ color: rgb(121, 86, 242);
/* oklch */ color: oklch(57.8% 0.222 287.7);
Tailwind
colors: {
  custom: {
    50: '#a988f7',
    500: '#7956f2',
    950: '#000000',
  },
}
SCSS
$custom: #7956f2;
$custom-light: #a988f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7956f2",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 253.462,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57765,
    "c": 0.22181,
    "h": 287.7
  },
  "luminance": 0.17131
}

Semantic roles & 50–950 ramp

primary
#7956F2
secondary
#E1EDB7
accent
#E203B0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7956F2

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

Preview Lab → · Contrast checker → · Palette generator →

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