#7956F5#7956F5

#7956F5 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.0% C 0.225 H 287.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7956F5
RGBrgb(121, 86, 245)
HSLhsl(253, 89%, 65%)
HSVhsv(253, 65%, 96%)
CMYKcmyk(50.6%, 64.9%, 0%, 3.9%)
CIE-LABlab(48.65, 52.79, -75.01)
CIE-LCHlch(48.65, 91.72, 305.14°)
OKLaboklab(58% 0.067 -0.2152)
OKLCHoklch(58% 0.225 287.3)
XYZxyz(27.6895, 17.3118, 88.2510)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956F5 #D2F556
analogous
#5682F5 #7956F5 #C956F5
triadic
#7956F5 #F57956 #56F579
tetradic
#7956F5 #F55682 #D2F556 #56F5C9
square
#7956F5 #F55682 #D2F556 #56F5C9
split-complementary
#7956F5 #F5C956 #82F556
monochromatic
#340CC5 #4B1CF2 #7956F5 #A790F8 #D5CAFC

Accessibility & contrast

On white

4.71
#7956F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7956F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956F5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956F5#FFFFFF#000000##FFFFFF
##7956F51.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FA
Deuteranopia (green-blind)
#006FF2
Tritanopia (blue-blind)
#4B7D9E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7956f5;
/* rgb */ color: rgb(121, 86, 245);
/* oklch */ color: oklch(58.0% 0.225 287.3);
Tailwind
colors: {
  custom: {
    50: '#a988fa',
    500: '#7956f5',
    950: '#000000',
  },
}
SCSS
$custom: #7956f5;
$custom-light: #a988fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7956f5",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 245
  },
  "hsl": {
    "h": 253.208,
    "s": 88.827,
    "l": 64.902
  },
  "oklch": {
    "l": 0.58,
    "c": 0.22537,
    "h": 287.3
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#7956F5
secondary
#E3EFB8
accent
#E500B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7956F5

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

Preview Lab → · Contrast checker → · Palette generator →

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