#7956EA#7956EA

#7956EA is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.1% C 0.212 H 288.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7956EA
RGBrgb(121, 86, 234)
HSLhsl(254, 78%, 63%)
HSVhsv(254, 63%, 92%)
CMYKcmyk(48.3%, 63.2%, 0%, 8.2%)
CIE-LABlab(47.83, 49.70, -70.17)
CIE-LCHlch(47.83, 85.99, 305.31°)
OKLaboklab(57.15% 0.0681 -0.201)
OKLCHoklch(57.15% 0.212 288.7)
XYZxyz(26.0599, 16.6599, 79.6685)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956EA #C7EA56
analogous
#567DEA #7956EA #C356EA
triadic
#7956EA #EA7956 #56EA79
tetradic
#7956EA #EA567D #C7EA56 #56EAC3
square
#7956EA #EA567D #C7EA56 #56EAC3
split-complementary
#7956EA #EAC356 #7DEA56
monochromatic
#3A16B0 #4E20E3 #7956EA #A48CF1 #CFC3F8

Accessibility & contrast

On white

4.85
#7956EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7956EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7956EA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956EA#FFFFFF#000000##FFFFFF
##7956EA1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#006EE7
Tritanopia (blue-blind)
#537A98
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7956ea;
/* rgb */ color: rgb(121, 86, 234);
/* oklch */ color: oklch(57.1% 0.212 288.7);
Tailwind
colors: {
  custom: {
    50: '#a887f2',
    500: '#7956ea',
    950: '#000000',
  },
}
SCSS
$custom: #7956ea;
$custom-light: #a887f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7956ea",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 254.189,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57148,
    "c": 0.21222,
    "h": 288.7
  },
  "luminance": 0.16661
}

Semantic roles & 50–950 ramp

primary
#7956EA
secondary
#DCE9B3
accent
#DA0BA9
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7956EA

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

Preview Lab → · Contrast checker → · Palette generator →

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