#7956E4#7956E4

#7956E4 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.7% C 0.205 H 289.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7956E4
RGBrgb(121, 86, 228)
HSLhsl(255, 72%, 62%)
HSVhsv(255, 62%, 89%)
CMYKcmyk(46.9%, 62.3%, 0%, 10.6%)
CIE-LABlab(47.39, 48.02, -67.49)
CIE-LCHlch(47.39, 82.83, 305.43°)
OKLaboklab(56.69% 0.0687 -0.1931)
OKLCHoklch(56.69% 0.205 289.6)
XYZxyz(25.2125, 16.3210, 75.2056)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956E4 #C1E456
analogous
#567AE4 #7956E4 #C056E4
triadic
#7956E4 #E47956 #56E479
tetradic
#7956E4 #E4567A #C1E456 #56E4C0
square
#7956E4 #E4567A #C1E456 #56E4C0
split-complementary
#7956E4 #E4C056 #7AE456
monochromatic
#3D1AA5 #5023DA #7956E4 #A38BEC #CDC0F5

Accessibility & contrast

On white

4.92
#7956E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7956E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956E4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956E4#FFFFFF#000000##FFFFFF
##7956E41.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#577795
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7956e4;
/* rgb */ color: rgb(121, 86, 228);
/* oklch */ color: oklch(56.7% 0.205 289.6);
Tailwind
colors: {
  custom: {
    50: '#a787ed',
    500: '#7956e4',
    950: '#000000',
  },
}
SCSS
$custom: #7956e4;
$custom-light: #a787ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7956e4",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 254.789,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56695,
    "c": 0.20495,
    "h": 289.6
  },
  "luminance": 0.16322
}

Semantic roles & 50–950 ramp

primary
#7956E4
secondary
#D8E5B0
accent
#D511A4
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7956E4

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

Preview Lab → · Contrast checker → · Palette generator →

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