#7851EB#7851EB

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

Color values

HEX#7851EB
RGBrgb(120, 81, 235)
HSLhsl(255, 79%, 62%)
HSVhsv(255, 66%, 92%)
CMYKcmyk(48.9%, 65.5%, 0%, 7.8%)
CIE-LABlab(46.81, 52.50, -72.40)
CIE-LCHlch(46.81, 89.43, 305.95°)
OKLaboklab(56.41% 0.0716 -0.2076)
OKLCHoklch(56.41% 0.22 289)
XYZxyz(25.6792, 15.8750, 80.2923)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851EB #C4EB51
analogous
#5177EB #7851EB #C551EB
triadic
#7851EB #EB7851 #51EB78
tetradic
#7851EB #EB5177 #C4EB51 #51EBC5
square
#7851EB #EB5177 #C4EB51 #51EBC5
split-complementary
#7851EB #EBC551 #77EB51
monochromatic
#3B14AE #4D1AE5 #7851EB #A388F1 #CDBFF8

Accessibility & contrast

On white

5.03
#7851EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7851EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851EB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851EB#FFFFFF#000000##FFFFFF
##7851EB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7851eb;
/* rgb */ color: rgb(120, 81, 235);
/* oklch */ color: oklch(56.4% 0.220 289.0);
Tailwind
colors: {
  custom: {
    50: '#a884f2',
    500: '#7851eb',
    950: '#000000',
  },
}
SCSS
$custom: #7851eb;
$custom-light: #a884f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7851eb",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 255.195,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56413,
    "c": 0.21955,
    "h": 289
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7851EB

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

Preview Lab → · Contrast checker → · Palette generator →

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