#7951EB#7951EB

#7951EB is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.220 H 289.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7951EB
RGBrgb(121, 81, 235)
HSLhsl(256, 79%, 62%)
HSVhsv(256, 66%, 92%)
CMYKcmyk(48.5%, 65.5%, 0%, 7.8%)
CIE-LABlab(46.90, 52.68, -72.24)
CIE-LCHlch(46.90, 89.41, 306.10°)
OKLaboklab(56.5% 0.0729 -0.2071)
OKLCHoklch(56.5% 0.22 289.4)
XYZxyz(25.8187, 15.9469, 80.2988)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951EB #C3EB51
analogous
#5176EB #7951EB #C651EB
triadic
#7951EB #EB7951 #51EB79
tetradic
#7951EB #EB5176 #C3EB51 #51EBC6
square
#7951EB #EB5176 #C3EB51 #51EBC6
split-complementary
#7951EB #EBC651 #76EB51
monochromatic
#3C14AE #4F1AE5 #7951EB #A388F1 #CEBFF8

Accessibility & contrast

On white

5.01
#7951EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7951EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951EB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951EB#FFFFFF#000000##FFFFFF
##7951EB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#006BE8
Tritanopia (blue-blind)
#527797
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7951eb;
/* rgb */ color: rgb(121, 81, 235);
/* oklch */ color: oklch(56.5% 0.220 289.4);
Tailwind
colors: {
  custom: {
    50: '#a984f2',
    500: '#7951eb',
    950: '#000000',
  },
}
SCSS
$custom: #7951eb;
$custom-light: #a984f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7951eb",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 255.584,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56504,
    "c": 0.21951,
    "h": 289.4
  },
  "luminance": 0.15948
}

Semantic roles & 50–950 ramp

primary
#7951EB
secondary
#DAE8B0
accent
#DC0AA5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7951EB

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

Preview Lab → · Contrast checker → · Palette generator →

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