#7956E5#7956E5

#7956E5 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.8% C 0.206 H 289.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7956E5
RGBrgb(121, 86, 229)
HSLhsl(255, 73%, 62%)
HSVhsv(255, 62%, 90%)
CMYKcmyk(47.2%, 62.4%, 0%, 10.2%)
CIE-LABlab(47.46, 48.30, -67.94)
CIE-LCHlch(47.46, 83.36, 305.41°)
OKLaboklab(56.77% 0.0686 -0.1944)
OKLCHoklch(56.77% 0.206 289.4)
XYZxyz(25.3518, 16.3767, 75.9388)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956E5 #C2E556
analogous
#567BE5 #7956E5 #C056E5
triadic
#7956E5 #E57956 #56E579
tetradic
#7956E5 #E5567B #C2E556 #56E5C0
square
#7956E5 #E5567B #C2E556 #56E5C0
split-complementary
#7956E5 #E5C056 #7BE556
monochromatic
#3C1AA7 #4F22DC #7956E5 #A38BED #CDC0F5

Accessibility & contrast

On white

4.91
#7956E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7956E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956E5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956E5#FFFFFF#000000##FFFFFF
##7956E51.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EA
Deuteranopia (green-blind)
#006DE2
Tritanopia (blue-blind)
#567896
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7956e5;
/* rgb */ color: rgb(121, 86, 229);
/* oklch */ color: oklch(56.8% 0.206 289.4);
Tailwind
colors: {
  custom: {
    50: '#a887ee',
    500: '#7956e5',
    950: '#000000',
  },
}
SCSS
$custom: #7956e5;
$custom-light: #a887ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7956e5",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 229
  },
  "hsl": {
    "h": 254.685,
    "s": 73.333,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5677,
    "c": 0.20617,
    "h": 289.4
  },
  "luminance": 0.16378
}

Semantic roles & 50–950 ramp

primary
#7956E5
secondary
#D9E6B1
accent
#D510A5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7956E5

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

Preview Lab → · Contrast checker → · Palette generator →

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