#7956E7#7956E7

#7956E7 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.9% C 0.209 H 289.1°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7956E7
RGBrgb(121, 86, 231)
HSLhsl(254, 75%, 62%)
HSVhsv(254, 63%, 91%)
CMYKcmyk(47.6%, 62.8%, 0%, 9.4%)
CIE-LABlab(47.61, 48.86, -68.84)
CIE-LCHlch(47.61, 84.41, 305.37°)
OKLaboklab(56.92% 0.0684 -0.1971)
OKLCHoklch(56.92% 0.209 289.1)
XYZxyz(25.6326, 16.4890, 77.4179)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956E7 #C4E756
analogous
#567BE7 #7956E7 #C256E7
triadic
#7956E7 #E77956 #56E779
tetradic
#7956E7 #E7567B #C4E756 #56E7C2
square
#7956E7 #E7567B #C4E756 #56E7C2
split-complementary
#7956E7 #E7C256 #7BE756
monochromatic
#3B18AA #4F20DF #7956E7 #A38CEF #CEC1F6

Accessibility & contrast

On white

4.89
#7956E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7956E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956E7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956E7#FFFFFF#000000##FFFFFF
##7956E71.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#557997
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7956e7;
/* rgb */ color: rgb(121, 86, 231);
/* oklch */ color: oklch(56.9% 0.209 289.1);
Tailwind
colors: {
  custom: {
    50: '#a887f0',
    500: '#7956e7',
    950: '#000000',
  },
}
SCSS
$custom: #7956e7;
$custom-light: #a887f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7956e7",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 254.483,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56921,
    "c": 0.20859,
    "h": 289.1
  },
  "luminance": 0.1649
}

Semantic roles & 50–950 ramp

primary
#7956E7
secondary
#DAE7B2
accent
#D70EA7
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7956E7

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

Preview Lab → · Contrast checker → · Palette generator →

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