#7851DC#7851DC

#7851DC is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.3% C 0.202 H 291.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7851DC
RGBrgb(120, 81, 220)
HSLhsl(257, 67%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(45.5%, 63.2%, 0%, 13.7%)
CIE-LABlab(45.69, 48.35, -65.71)
CIE-LCHlch(45.69, 81.58, 306.34°)
OKLaboklab(55.26% 0.0732 -0.1879)
OKLCHoklch(55.26% 0.202 291.3)
XYZxyz(23.6028, 15.0444, 69.3565)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851DC #B5DC51
analogous
#5170DC #7851DC #BE51DC
triadic
#7851DC #DC7851 #51DC78
tetradic
#7851DC #DC5170 #B5DC51 #51DCBE
square
#7851DC #DC5170 #B5DC51 #51DCBE
split-complementary
#7851DC #DCBE51 #70DC51
monochromatic
#3F1E95 #5528C8 #7851DC #A084E6 #C7B7F0

Accessibility & contrast

On white

5.24
#7851DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7851DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851DC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851DC#FFFFFF#000000##FFFFFF
##7851DC1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#0069D9
Tritanopia (blue-blind)
#5A728F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7851dc;
/* rgb */ color: rgb(120, 81, 220);
/* oklch */ color: oklch(55.3% 0.202 291.3);
Tailwind
colors: {
  custom: {
    50: '#a684e8',
    500: '#7851dc',
    950: '#000000',
  },
}
SCSS
$custom: #7851dc;
$custom-light: #a684e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7851dc",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 256.835,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55258,
    "c": 0.20166,
    "h": 291.3
  },
  "luminance": 0.15045
}

Semantic roles & 50–950 ramp

primary
#7851DC
secondary
#D0E0A9
accent
#E93EB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7851DC

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

Preview Lab → · Contrast checker → · Palette generator →

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