#7951E5#7951E5

#7951E5 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.0% C 0.212 H 290.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7951E5
RGBrgb(121, 81, 229)
HSLhsl(256, 74%, 61%)
HSVhsv(256, 65%, 90%)
CMYKcmyk(47.2%, 64.6%, 0%, 10.2%)
CIE-LABlab(46.45, 51.02, -69.59)
CIE-LCHlch(46.45, 86.29, 306.25°)
OKLaboklab(56.04% 0.0736 -0.1993)
OKLCHoklch(56.04% 0.212 290.3)
XYZxyz(24.9664, 15.6060, 75.8103)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951E5 #BDE551
analogous
#5173E5 #7951E5 #C351E5
triadic
#7951E5 #E57951 #51E579
tetradic
#7951E5 #E55173 #BDE551 #51E5C3
square
#7951E5 #E55173 #BDE551 #51E5C3
split-complementary
#7951E5 #E5C351 #73E551
monochromatic
#3E18A3 #5220D8 #7951E5 #A286ED #CBBBF5

Accessibility & contrast

On white

5.10
#7951E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7951E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951E5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951E5#FFFFFF#000000##FFFFFF
##7951E51.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#006BE2
Tritanopia (blue-blind)
#567594
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7951e5;
/* rgb */ color: rgb(121, 81, 229);
/* oklch */ color: oklch(56.0% 0.212 290.3);
Tailwind
colors: {
  custom: {
    50: '#a884ee',
    500: '#7951e5',
    950: '#000000',
  },
}
SCSS
$custom: #7951e5;
$custom-light: #a884ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7951e5",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 256.216,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56037,
    "c": 0.21242,
    "h": 290.3
  },
  "luminance": 0.15607
}

Semantic roles & 50–950 ramp

primary
#7951E5
secondary
#D6E5AD
accent
#D60FA0
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7951E5

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

Preview Lab → · Contrast checker → · Palette generator →

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