#7951E8#7951E8

#7951E8 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.3% C 0.216 H 289.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7951E8
RGBrgb(121, 81, 232)
HSLhsl(256, 77%, 61%)
HSVhsv(256, 65%, 91%)
CMYKcmyk(47.8%, 65.1%, 0%, 9%)
CIE-LABlab(46.68, 51.85, -70.92)
CIE-LCHlch(46.68, 87.85, 306.17°)
OKLaboklab(56.27% 0.0733 -0.2032)
OKLCHoklch(56.27% 0.216 289.8)
XYZxyz(25.3889, 15.7750, 78.0354)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951E8 #C0E851
analogous
#5175E8 #7951E8 #C551E8
triadic
#7951E8 #E87951 #51E879
tetradic
#7951E8 #E85175 #C0E851 #51E8C5
square
#7951E8 #E85175 #C0E851 #51E8C5
split-complementary
#7951E8 #E8C551 #75E851
monochromatic
#3D16A8 #511DDE #7951E8 #A387EF #CCBDF6

Accessibility & contrast

On white

5.05
#7951E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7951E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951E8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951E8#FFFFFF#000000##FFFFFF
##7951E81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071ED
Deuteranopia (green-blind)
#006BE5
Tritanopia (blue-blind)
#547696
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7951e8;
/* rgb */ color: rgb(121, 81, 232);
/* oklch */ color: oklch(56.3% 0.216 289.8);
Tailwind
colors: {
  custom: {
    50: '#a884f0',
    500: '#7951e8',
    950: '#000000',
  },
}
SCSS
$custom: #7951e8;
$custom-light: #a884f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7951e8",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 255.894,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5627,
    "c": 0.21597,
    "h": 289.8
  },
  "luminance": 0.15776
}

Semantic roles & 50–950 ramp

primary
#7951E8
secondary
#D8E7AE
accent
#D90DA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7951E8

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

Preview Lab → · Contrast checker → · Palette generator →

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