#7956E8#7956E8

#7956E8 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.0% C 0.210 H 289.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7956E8
RGBrgb(121, 86, 232)
HSLhsl(254, 76%, 62%)
HSVhsv(254, 63%, 91%)
CMYKcmyk(47.8%, 62.9%, 0%, 9%)
CIE-LABlab(47.68, 49.14, -69.28)
CIE-LCHlch(47.68, 84.94, 305.35°)
OKLaboklab(57% 0.0683 -0.1984)
OKLCHoklch(57% 0.21 289)
XYZxyz(25.7742, 16.5457, 78.1639)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956E8 #C5E856
analogous
#567CE8 #7956E8 #C256E8
triadic
#7956E8 #E87956 #56E879
tetradic
#7956E8 #E8567C #C5E856 #56E8C2
square
#7956E8 #E8567C #C5E856 #56E8C2
split-complementary
#7956E8 #E8C256 #7CE856
monochromatic
#3B17AC #4E20E1 #7956E8 #A48CEF #CEC2F7

Accessibility & contrast

On white

4.87
#7956E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7956E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956E8
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956E8#FFFFFF#000000##FFFFFF
##7956E81.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#547997
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7956e8;
/* rgb */ color: rgb(121, 86, 232);
/* oklch */ color: oklch(57.0% 0.210 289.0);
Tailwind
colors: {
  custom: {
    50: '#a887f0',
    500: '#7956e8',
    950: '#000000',
  },
}
SCSS
$custom: #7956e8;
$custom-light: #a887f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7956e8",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 254.384,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56996,
    "c": 0.2098,
    "h": 289
  },
  "luminance": 0.16547
}

Semantic roles & 50–950 ramp

primary
#7956E8
secondary
#DBE8B2
accent
#D80DA8
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7956E8

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

Preview Lab → · Contrast checker → · Palette generator →

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