#7956EB#7956EB

#7956EB is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.2% C 0.213 H 288.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7956EB
RGBrgb(121, 86, 235)
HSLhsl(254, 79%, 63%)
HSVhsv(254, 63%, 92%)
CMYKcmyk(48.5%, 63.4%, 0%, 7.8%)
CIE-LABlab(47.90, 49.98, -70.62)
CIE-LCHlch(47.90, 86.51, 305.29°)
OKLaboklab(57.23% 0.068 -0.2023)
OKLCHoklch(57.23% 0.213 288.6)
XYZxyz(26.2040, 16.7176, 80.4273)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956EB #C8EB56
analogous
#567DEB #7956EB #C356EB
triadic
#7956EB #EB7956 #56EB79
tetradic
#7956EB #EB567D #C8EB56 #56EBC3
square
#7956EB #EB567D #C8EB56 #56EBC3
split-complementary
#7956EB #EBC356 #7DEB56
monochromatic
#3A15B2 #4E1FE5 #7956EB #A48DF1 #D0C3F8

Accessibility & contrast

On white

4.83
#7956EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7956EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956EB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956EB#FFFFFF#000000##FFFFFF
##7956EB1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#527A99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7956eb;
/* rgb */ color: rgb(121, 86, 235);
/* oklch */ color: oklch(57.2% 0.213 288.6);
Tailwind
colors: {
  custom: {
    50: '#a887f2',
    500: '#7956eb',
    950: '#000000',
  },
}
SCSS
$custom: #7956eb;
$custom-light: #a887f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7956eb",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 254.094,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57225,
    "c": 0.21342,
    "h": 288.6
  },
  "luminance": 0.16719
}

Semantic roles & 50–950 ramp

primary
#7956EB
secondary
#DDE9B4
accent
#DB0AAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7956EB

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

Preview Lab → · Contrast checker → · Palette generator →

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