#7851DE#7851DE

#7851DE is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.4% C 0.204 H 291.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7851DE
RGBrgb(120, 81, 222)
HSLhsl(257, 68%, 59%)
HSVhsv(257, 64%, 87%)
CMYKcmyk(45.9%, 63.5%, 0%, 12.9%)
CIE-LABlab(45.84, 48.90, -66.62)
CIE-LCHlch(45.84, 82.64, 306.28°)
OKLaboklab(55.41% 0.073 -0.1906)
OKLCHoklch(55.41% 0.204 291)
XYZxyz(23.8693, 15.1510, 70.7599)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851DE #B7DE51
analogous
#5171DE #7851DE #BF51DE
triadic
#7851DE #DE7851 #51DE78
tetradic
#7851DE #DE5171 #B7DE51 #51DEBF
square
#7851DE #DE5171 #B7DE51 #51DEBF
split-complementary
#7851DE #DEBF51 #71DE51
monochromatic
#3F1D98 #5427CB #7851DE #A084E8 #C8B8F2

Accessibility & contrast

On white

5.21
#7851DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7851DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851DE
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851DE#FFFFFF#000000##FFFFFF
##7851DE1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE2
Deuteranopia (green-blind)
#0069DB
Tritanopia (blue-blind)
#597290
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7851de;
/* rgb */ color: rgb(120, 81, 222);
/* oklch */ color: oklch(55.4% 0.204 291.0);
Tailwind
colors: {
  custom: {
    50: '#a684e9',
    500: '#7851de',
    950: '#000000',
  },
}
SCSS
$custom: #7851de;
$custom-light: #a684e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7851de",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 256.596,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55409,
    "c": 0.20406,
    "h": 291
  },
  "luminance": 0.15152
}

Semantic roles & 50–950 ramp

primary
#7851DE
secondary
#D2E1AA
accent
#EB3DBB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7851DE

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

Preview Lab → · Contrast checker → · Palette generator →

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