#7851EA#7851EA

#7851EA is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.3% C 0.218 H 289.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7851EA
RGBrgb(120, 81, 234)
HSLhsl(255, 78%, 62%)
HSVhsv(255, 65%, 92%)
CMYKcmyk(48.7%, 65.4%, 0%, 8.2%)
CIE-LABlab(46.73, 52.22, -71.96)
CIE-LCHlch(46.73, 88.91, 305.97°)
OKLaboklab(56.34% 0.0717 -0.2063)
OKLCHoklch(56.34% 0.218 289.2)
XYZxyz(25.5352, 15.8174, 79.5335)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851EA #C3EA51
analogous
#5177EA #7851EA #C551EA
triadic
#7851EA #EA7851 #51EA78
tetradic
#7851EA #EA5177 #C3EA51 #51EAC5
square
#7851EA #EA5177 #C3EA51 #51EAC5
split-complementary
#7851EA #EAC551 #77EA51
monochromatic
#3B15AC #4E1BE2 #7851EA #A288F1 #CDBEF7

Accessibility & contrast

On white

5.04
#7851EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7851EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851EA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851EA#FFFFFF#000000##FFFFFF
##7851EA1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#006BE7
Tritanopia (blue-blind)
#517797
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7851ea;
/* rgb */ color: rgb(120, 81, 234);
/* oklch */ color: oklch(56.3% 0.218 289.2);
Tailwind
colors: {
  custom: {
    50: '#a884f2',
    500: '#7851ea',
    950: '#000000',
  },
}
SCSS
$custom: #7851ea;
$custom-light: #a884f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7851ea",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 255.294,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56335,
    "c": 0.21837,
    "h": 289.2
  },
  "luminance": 0.15818
}

Semantic roles & 50–950 ramp

primary
#7851EA
secondary
#D9E8AF
accent
#DB0BA6
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7851EA

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

Preview Lab → · Contrast checker → · Palette generator →

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